Home
last modified time | relevance | path

Searched refs:hmac_len (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/fs/ubifs/
Dauth.c393 int hmac_len = c->hmac_desc_len; in ubifs_node_calc_hmac() local
397 ubifs_assert(c, ofs_hmac + hmac_len < len); 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()
452 int hmac_len = c->hmac_desc_len; in __ubifs_node_verify_hmac() local
456 hmac = kmalloc(hmac_len, GFP_NOFS); in __ubifs_node_verify_hmac()
466 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len); in __ubifs_node_verify_hmac()
/kernel/linux/linux-5.10/security/keys/trusted-keys/
Dtrusted_tpm2.c37 const u8 *hmac, u16 hmac_len) in tpm2_buf_append_auth() argument
39 tpm_buf_append_u32(buf, 9 + nonce_len + hmac_len); in tpm2_buf_append_auth()
47 tpm_buf_append_u16(buf, hmac_len); in tpm2_buf_append_auth()
49 if (hmac && hmac_len) in tpm2_buf_append_auth()
50 tpm_buf_append(buf, hmac, hmac_len); in tpm2_buf_append_auth()
/kernel/linux/linux-5.10/include/net/sctp/
Dauth.h34 __u16 hmac_len; /* length of the signature */ member
/kernel/linux/linux-5.10/net/sctp/
Dchunk.c191 hmac_desc->hmac_len); in sctp_datamsg_from_user()
Dauth.c30 .hmac_len = SCTP_SHA1_SIG_SIZE,
40 .hmac_len = SCTP_SHA256_SIG_SIZE,
Dsm_make_chunk.c1294 hmac_desc->hmac_len + sizeof(auth_hdr), in sctp_make_auth()
1305 skb_put_zero(retval->skb, hmac_desc->hmac_len); in sctp_make_auth()
1309 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()
Dsm_statefuns.c4281 if (sig_len != hmac->hmac_len) in sctp_sf_authenticate()