Searched refs:hmacalg (Results 1 – 2 of 2) sorted by relevance
63 static struct crypto_shash *hmacalg; variable344 sdesc = alloc_sdesc(hmacalg); in calc_hmac()350 ret = crypto_shash_setkey(hmacalg, key, keylen); in calc_hmac()985 if (hmacalg) in encrypted_shash_release()986 crypto_free_shash(hmacalg); in encrypted_shash_release()993 hmacalg = crypto_alloc_shash(hmac_alg, 0, CRYPTO_ALG_ASYNC); in encrypted_shash_alloc()994 if (IS_ERR(hmacalg)) { in encrypted_shash_alloc()997 return PTR_ERR(hmacalg); in encrypted_shash_alloc()1011 crypto_free_shash(hmacalg); in encrypted_shash_alloc()
43 static struct crypto_shash *hmacalg; variable85 sdesc = init_sdesc(hmacalg); in TSS_rawhmac()91 ret = crypto_shash_setkey(hmacalg, key, keylen); in TSS_rawhmac()1113 if (hmacalg) in trusted_shash_release()1114 crypto_free_shash(hmacalg); in trusted_shash_release()1121 hmacalg = crypto_alloc_shash(hmac_alg, 0, CRYPTO_ALG_ASYNC); in trusted_shash_alloc()1122 if (IS_ERR(hmacalg)) { in trusted_shash_alloc()1125 return PTR_ERR(hmacalg); in trusted_shash_alloc()1139 crypto_free_shash(hmacalg); in trusted_shash_alloc()