Home
last modified time | relevance | path

Searched refs:hmac_tfm (Results 1 – 5 of 5) sorted by relevance

/fs/crypto/
Dhkdf.c43 static int hkdf_extract(struct crypto_shash *hmac_tfm, const u8 *ikm, in hkdf_extract() argument
47 SHASH_DESC_ON_STACK(desc, hmac_tfm); in hkdf_extract()
50 err = crypto_shash_setkey(hmac_tfm, default_salt, HKDF_HASHLEN); in hkdf_extract()
54 desc->tfm = hmac_tfm; in hkdf_extract()
70 struct crypto_shash *hmac_tfm; in fscrypt_init_hkdf() local
74 hmac_tfm = crypto_alloc_shash(HKDF_HMAC_ALG, 0, 0); in fscrypt_init_hkdf()
75 if (IS_ERR(hmac_tfm)) { in fscrypt_init_hkdf()
77 PTR_ERR(hmac_tfm)); in fscrypt_init_hkdf()
78 return PTR_ERR(hmac_tfm); in fscrypt_init_hkdf()
81 if (WARN_ON(crypto_shash_digestsize(hmac_tfm) != sizeof(prk))) { in fscrypt_init_hkdf()
[all …]
Dfscrypt_private.h306 struct crypto_shash *hmac_tfm; member
/fs/ubifs/
Dauth.c56 SHASH_DESC_ON_STACK(shash, c->hmac_tfm); in ubifs_hash_calc_hmac()
59 shash->tfm = c->hmac_tfm; in ubifs_hash_calc_hmac()
333 c->hmac_tfm = crypto_alloc_shash(hmac_name, 0, 0); in ubifs_init_authentication()
334 if (IS_ERR(c->hmac_tfm)) { in ubifs_init_authentication()
335 err = PTR_ERR(c->hmac_tfm); in ubifs_init_authentication()
340 c->hmac_desc_len = crypto_shash_digestsize(c->hmac_tfm); in ubifs_init_authentication()
348 err = crypto_shash_setkey(c->hmac_tfm, ukp->data, ukp->datalen); in ubifs_init_authentication()
364 crypto_free_shash(c->hmac_tfm); in ubifs_init_authentication()
386 crypto_free_shash(c->hmac_tfm); in __ubifs_exit_authentication()
406 SHASH_DESC_ON_STACK(shash, c->hmac_tfm); in ubifs_node_calc_hmac()
[all …]
Dreplay.c575 SHASH_DESC_ON_STACK(hmac_desc, c->hmac_tfm); in authenticate_sleb_hmac()
577 hmac_desc->tfm = c->hmac_tfm; in authenticate_sleb_hmac()
Dubifs.h1473 struct crypto_shash *hmac_tfm; member