Lines Matching refs:hmac
42 * @hmac: the returned HMAC
47 u8 *hmac)
49 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac);
81 err = ubifs_hash_calc_hmac(c, hash, auth->hmac);
276 snprintf(hmac_name, CRYPTO_MAX_ALG_NAME, "hmac(%s)",
327 ubifs_err(c, "hmac %s is bigger than maximum allowed hmac size (%d > %d)",
382 * @hmac: returned HMAC
389 int len, int ofs_hmac, void *hmac)
417 return crypto_shash_final(shash, hmac);
452 u8 *hmac;
455 hmac = kmalloc(hmac_len, GFP_NOFS);
456 if (!hmac)
459 err = ubifs_node_calc_hmac(c, node, len, ofs_hmac, hmac);
461 kfree(hmac);
465 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len);
467 kfree(hmac);
500 * @hmac: The HMAC of the well known message
509 int ubifs_hmac_wkm(struct ubifs_info *c, u8 *hmac)
529 err = crypto_shash_final(shash, hmac);
538 * @hmac: the HMAC to test
543 bool ubifs_hmac_zero(struct ubifs_info *c, const u8 *hmac)
545 return !memchr_inv(hmac, 0, c->hmac_desc_len);