Lines Matching refs:tfm
459 static int __sgx_get_key_hash(struct crypto_shash *tfm, const void *modulus,
462 SHASH_DESC_ON_STACK(shash, tfm);
464 shash->tfm = tfm;
471 struct crypto_shash *tfm;
474 tfm = crypto_alloc_shash("sha256", 0, CRYPTO_ALG_ASYNC);
475 if (IS_ERR(tfm))
476 return PTR_ERR(tfm);
478 ret = __sgx_get_key_hash(tfm, modulus, hash);
480 crypto_free_shash(tfm);