Lines Matching refs:shash
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()
400 err = crypto_shash_init(shash); in ubifs_node_calc_hmac()
405 err = crypto_shash_update(shash, node + 8, ofs_hmac - 8); in ubifs_node_calc_hmac()
411 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, in ubifs_node_calc_hmac()
417 return crypto_shash_final(shash, hmac); 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()
520 err = crypto_shash_init(shash); in ubifs_hmac_wkm()
524 err = crypto_shash_update(shash, well_known_message, in ubifs_hmac_wkm()
529 err = crypto_shash_final(shash, hmac); in ubifs_hmac_wkm()