Home
last modified time | relevance | path

Searched refs:hashalg (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/security/keys/
Dtrusted.c42 static struct crypto_shash *hashalg; variable
65 sdesc = init_sdesc(hashalg); in TSS_sha1()
135 sdesc = init_sdesc(hashalg); in TSS_authhmac()
207 sdesc = init_sdesc(hashalg); in TSS_checkhmac1()
299 sdesc = init_sdesc(hashalg); in TSS_checkhmac2()
1141 if (hashalg) in trusted_shash_release()
1142 crypto_free_shash(hashalg); in trusted_shash_release()
1158 hashalg = crypto_alloc_shash(hash_alg, 0, CRYPTO_ALG_ASYNC); in trusted_shash_alloc()
1159 if (IS_ERR(hashalg)) { in trusted_shash_alloc()
1162 ret = PTR_ERR(hashalg); in trusted_shash_alloc()
/linux-4.4.14/security/keys/encrypted-keys/
Dencrypted.c62 static struct crypto_shash *hashalg; variable
362 sdesc = alloc_sdesc(hashalg); in calc_hash()
983 if (hashalg) in encrypted_shash_release()
984 crypto_free_shash(hashalg); in encrypted_shash_release()
1000 hashalg = crypto_alloc_shash(hash_alg, 0, CRYPTO_ALG_ASYNC); in encrypted_shash_alloc()
1001 if (IS_ERR(hashalg)) { in encrypted_shash_alloc()
1004 ret = PTR_ERR(hashalg); in encrypted_shash_alloc()