Home
last modified time | relevance | path

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

/linux/fs/ubifs/
H A Dauth.c391 int hmac_len = c->hmac_desc_len; in ubifs_node_calc_hmac() local
395 ubifs_assert(c, ofs_hmac + hmac_len < len); in ubifs_node_calc_hmac()
409 if (len - ofs_hmac - hmac_len > 0) { in ubifs_node_calc_hmac()
410 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, in ubifs_node_calc_hmac()
411 len - ofs_hmac - hmac_len); in ubifs_node_calc_hmac()
450 int hmac_len = c->hmac_desc_len; in __ubifs_node_verify_hmac() local
454 hmac = kmalloc(hmac_len, GFP_NOFS); in __ubifs_node_verify_hmac()
464 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len); in __ubifs_node_verify_hmac()
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c215 const u8 *hmac, u16 hmac_len) in tpm2_buf_append_auth() argument
217 tpm_buf_append_u32(buf, 9 + nonce_len + hmac_len); in tpm2_buf_append_auth()
225 tpm_buf_append_u16(buf, hmac_len); in tpm2_buf_append_auth()
227 if (hmac && hmac_len) in tpm2_buf_append_auth()
228 tpm_buf_append(buf, hmac, hmac_len); in tpm2_buf_append_auth()
/linux/include/net/sctp/
H A Dauth.h34 __u16 hmac_len; /* length of the signature */ member
/linux/net/sctp/
H A Dchunk.c191 hmac_desc->hmac_len); in sctp_datamsg_from_user()
H A Dauth.c30 .hmac_len = SCTP_SHA1_SIG_SIZE,
40 .hmac_len = SCTP_SHA256_SIG_SIZE,
H A 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()
H A Dsm_statefuns.c4395 if (sig_len != hmac->hmac_len) in sctp_sf_authenticate()