Home
last modified time | relevance | path

Searched refs:hmacalg (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-6.6/security/keys/trusted-keys/
H A Dtrusted_tpm1.c36 static struct crypto_shash *hmacalg; variable
77 sdesc = init_sdesc(hmacalg); in TSS_rawhmac()
83 ret = crypto_shash_setkey(hmacalg, key, keylen); in TSS_rawhmac()
985 if (hmacalg) in trusted_shash_release()
986 crypto_free_shash(hmacalg); in trusted_shash_release()
993 hmacalg = crypto_alloc_shash(hmac_alg, 0, 0); in trusted_shash_alloc()
994 if (IS_ERR(hmacalg)) { in trusted_shash_alloc()
997 return PTR_ERR(hmacalg); in trusted_shash_alloc()
1011 crypto_free_shash(hmacalg); in trusted_shash_alloc()
/kernel/linux/linux-5.10/security/keys/trusted-keys/
H A Dtrusted_tpm1.c43 static struct crypto_shash *hmacalg; variable
84 sdesc = init_sdesc(hmacalg); in TSS_rawhmac()
90 ret = crypto_shash_setkey(hmacalg, key, keylen); in TSS_rawhmac()
1211 if (hmacalg) in trusted_shash_release()
1212 crypto_free_shash(hmacalg); in trusted_shash_release()
1219 hmacalg = crypto_alloc_shash(hmac_alg, 0, 0); in trusted_shash_alloc()
1220 if (IS_ERR(hmacalg)) { in trusted_shash_alloc()
1223 return PTR_ERR(hmacalg); in trusted_shash_alloc()
1237 crypto_free_shash(hmacalg); in trusted_shash_alloc()

Completed in 4 milliseconds