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

/linux-4.1.27/security/keys/encrypted-keys/
H A Dencrypted.c63 static struct crypto_shash *hmacalg; variable in typeref:struct:crypto_shash
344 sdesc = alloc_sdesc(hmacalg); calc_hmac()
350 ret = crypto_shash_setkey(hmacalg, key, keylen); calc_hmac()
985 if (hmacalg) encrypted_shash_release()
986 crypto_free_shash(hmacalg); encrypted_shash_release()
993 hmacalg = crypto_alloc_shash(hmac_alg, 0, CRYPTO_ALG_ASYNC); encrypted_shash_alloc()
994 if (IS_ERR(hmacalg)) { encrypted_shash_alloc()
997 return PTR_ERR(hmacalg); encrypted_shash_alloc()
1011 crypto_free_shash(hmacalg); encrypted_shash_alloc()
/linux-4.1.27/security/keys/
H A Dtrusted.c43 static struct crypto_shash *hmacalg; variable in typeref:struct:crypto_shash
85 sdesc = init_sdesc(hmacalg); TSS_rawhmac()
91 ret = crypto_shash_setkey(hmacalg, key, keylen); TSS_rawhmac()
1113 if (hmacalg) trusted_shash_release()
1114 crypto_free_shash(hmacalg); trusted_shash_release()
1121 hmacalg = crypto_alloc_shash(hmac_alg, 0, CRYPTO_ALG_ASYNC); trusted_shash_alloc()
1122 if (IS_ERR(hmacalg)) { trusted_shash_alloc()
1125 return PTR_ERR(hmacalg); trusted_shash_alloc()
1139 crypto_free_shash(hmacalg); trusted_shash_alloc()

Completed in 96 milliseconds