Home
last modified time | relevance | path

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

/linux-6.1.9/fs/ubifs/
Dauth.c392 int hmac_len = c->hmac_desc_len; in ubifs_node_calc_hmac() local
396 ubifs_assert(c, ofs_hmac + hmac_len < len); 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()
451 int hmac_len = c->hmac_desc_len; in __ubifs_node_verify_hmac() local
455 hmac = kmalloc(hmac_len, GFP_NOFS); in __ubifs_node_verify_hmac()
465 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len); in __ubifs_node_verify_hmac()
/linux-6.1.9/security/keys/trusted-keys/
Dtrusted_tpm2.c202 const u8 *hmac, u16 hmac_len) in tpm2_buf_append_auth() argument
204 tpm_buf_append_u32(buf, 9 + nonce_len + hmac_len); in tpm2_buf_append_auth()
212 tpm_buf_append_u16(buf, hmac_len); in tpm2_buf_append_auth()
214 if (hmac && hmac_len) in tpm2_buf_append_auth()
215 tpm_buf_append(buf, hmac, hmac_len); in tpm2_buf_append_auth()
/linux-6.1.9/include/net/sctp/
Dauth.h34 __u16 hmac_len; /* length of the signature */ member
/linux-6.1.9/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.c1339 hmac_desc->hmac_len + sizeof(auth_hdr), in sctp_make_auth()
1350 skb_put_zero(retval->skb, hmac_desc->hmac_len); in sctp_make_auth()
1354 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()
Dsm_statefuns.c4386 if (sig_len != hmac->hmac_len) in sctp_sf_authenticate()