Home
last modified time | relevance | path

Searched refs:ofs_hmac (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/fs/ubifs/
Dauth.c390 int len, int ofs_hmac, void *hmac) in ubifs_node_calc_hmac() argument
396 ubifs_assert(c, ofs_hmac > 8); in ubifs_node_calc_hmac()
397 ubifs_assert(c, ofs_hmac + hmac_len < len); in ubifs_node_calc_hmac()
406 err = crypto_shash_update(shash, node + 8, ofs_hmac - 8); in ubifs_node_calc_hmac()
411 if (len - ofs_hmac - hmac_len > 0) { in ubifs_node_calc_hmac()
412 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, in ubifs_node_calc_hmac()
413 len - ofs_hmac - hmac_len); in ubifs_node_calc_hmac()
434 int ofs_hmac) in __ubifs_node_insert_hmac() argument
436 return ubifs_node_calc_hmac(c, node, len, ofs_hmac, node + ofs_hmac); in __ubifs_node_insert_hmac()
450 int len, int ofs_hmac) in __ubifs_node_verify_hmac() argument
[all …]
Dubifs.h1654 int len, int ofs_hmac);
1656 int len, int ofs_hmac) in ubifs_node_insert_hmac() argument
1659 return __ubifs_node_insert_hmac(c, buf, len, ofs_hmac); in ubifs_node_insert_hmac()
1665 int len, int ofs_hmac);
1667 const void *buf, int len, int ofs_hmac) in ubifs_node_verify_hmac() argument
1670 return __ubifs_node_verify_hmac(c, buf, len, ofs_hmac); in ubifs_node_verify_hmac()