Lines Matching refs:hmac_tfm
48 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac()
317 c->hmac_tfm = crypto_alloc_shash(hmac_name, 0, 0); in ubifs_init_authentication()
318 if (IS_ERR(c->hmac_tfm)) { in ubifs_init_authentication()
319 err = PTR_ERR(c->hmac_tfm); in ubifs_init_authentication()
324 c->hmac_desc_len = crypto_shash_digestsize(c->hmac_tfm); in ubifs_init_authentication()
332 err = crypto_shash_setkey(c->hmac_tfm, ukp->data, ukp->datalen); in ubifs_init_authentication()
348 crypto_free_shash(c->hmac_tfm); in ubifs_init_authentication()
370 crypto_free_shash(c->hmac_tfm); in __ubifs_exit_authentication()
390 SHASH_DESC_ON_STACK(shash, c->hmac_tfm); in ubifs_node_calc_hmac()
397 shash->tfm = c->hmac_tfm; in ubifs_node_calc_hmac()
515 return crypto_shash_tfm_digest(c->hmac_tfm, well_known_message, in ubifs_hmac_wkm()