Lines Matching refs:ofs_hmac
389 int len, int ofs_hmac, void *hmac) in ubifs_node_calc_hmac() argument
395 ubifs_assert(c, ofs_hmac > 8); in ubifs_node_calc_hmac()
396 ubifs_assert(c, ofs_hmac + hmac_len < len); in ubifs_node_calc_hmac()
405 err = crypto_shash_update(shash, node + 8, ofs_hmac - 8); in ubifs_node_calc_hmac()
410 if (len - ofs_hmac - hmac_len > 0) { in ubifs_node_calc_hmac()
411 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, in ubifs_node_calc_hmac()
412 len - ofs_hmac - hmac_len); in ubifs_node_calc_hmac()
433 int ofs_hmac) in __ubifs_node_insert_hmac() argument
435 return ubifs_node_calc_hmac(c, node, len, ofs_hmac, node + ofs_hmac); in __ubifs_node_insert_hmac()
449 int len, int ofs_hmac) in __ubifs_node_verify_hmac() argument
459 err = ubifs_node_calc_hmac(c, node, len, ofs_hmac, hmac); in __ubifs_node_verify_hmac()
465 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len); in __ubifs_node_verify_hmac()