Lines Matching refs:hmac_tfm
49 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac()
318 c->hmac_tfm = crypto_alloc_shash(hmac_name, 0, 0); in ubifs_init_authentication()
319 if (IS_ERR(c->hmac_tfm)) { in ubifs_init_authentication()
320 err = PTR_ERR(c->hmac_tfm); in ubifs_init_authentication()
325 c->hmac_desc_len = crypto_shash_digestsize(c->hmac_tfm); in ubifs_init_authentication()
333 err = crypto_shash_setkey(c->hmac_tfm, ukp->data, ukp->datalen); in ubifs_init_authentication()
349 crypto_free_shash(c->hmac_tfm); in ubifs_init_authentication()
371 crypto_free_shash(c->hmac_tfm); in __ubifs_exit_authentication()
391 SHASH_DESC_ON_STACK(shash, c->hmac_tfm); in ubifs_node_calc_hmac()
398 shash->tfm = c->hmac_tfm; in ubifs_node_calc_hmac()
511 SHASH_DESC_ON_STACK(shash, c->hmac_tfm); in ubifs_hmac_wkm()
518 shash->tfm = c->hmac_tfm; in ubifs_hmac_wkm()