Move hash_createdigest() to tee_svc_cryp.c (can be common to several providers)
Remove unused function hash_check()