Home
last modified time | relevance | path

Searched refs:mac_len (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/crypto/external/bsd/openssl/dist/crypto/pkcs12/
H A Dp12_decr.c28 int max_out_len, mac_len = 0; in PKCS12_pbe_crypt_ex() local
49 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_TLS1_AAD, 0, &mac_len) < 0) { in PKCS12_pbe_crypt_ex()
55 max_out_len += mac_len; in PKCS12_pbe_crypt_ex()
57 if (inlen < mac_len) { in PKCS12_pbe_crypt_ex()
61 inlen -= mac_len; in PKCS12_pbe_crypt_ex()
63 (int)mac_len, (unsigned char *)in+inlen) < 0) { in PKCS12_pbe_crypt_ex()
96 (int)mac_len, out+outlen) < 0) { in PKCS12_pbe_crypt_ex()
102 outlen += mac_len; in PKCS12_pbe_crypt_ex()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dmac.c111 mac->key_len = mac->mac_len = ssh_hmac_bytes(macalg->alg); in mac_setup_by_alg()
113 mac->mac_len = macalg->len / 8; in mac_setup_by_alg()
118 mac->mac_len = macalg->truncatebits / 8; in mac_setup_by_alg()
174 if (mac->mac_len > sizeof(u)) in mac_compute()
201 if (dlen > mac->mac_len) in mac_compute()
202 dlen = mac->mac_len; in mac_compute()
216 if (mac->mac_len > mlen) in mac_check()
221 if (timingsafe_bcmp(ourmac, theirmac, mac->mac_len) != 0) in mac_check()
H A Dmac.h35 u_int mac_len; member
/netbsd-src/crypto/external/bsd/openssl/dist/test/recipes/
H A D70-test_sslcbcpadding.t94 my $mac_len = 20;
97 my $plaintext_len = $block_size - ($mac_len % $block_size);
102 $data .= TLSProxy::Proxy::fill_known_data($mac_len); # MAC.
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/recipes/
H A D70-test_sslcbcpadding.t92 my $mac_len = 20;
95 my $plaintext_len = $block_size - ($mac_len % $block_size);
100 $data .= TLSProxy::Proxy::fill_known_data($mac_len); # MAC.
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/kdf/
H A Dtls1_prf.c221 size_t mac_len; in tls1_prf_P_hash() local
222 if (!EVP_DigestSignFinal(ctx, out, &mac_len)) in tls1_prf_P_hash()
224 out += mac_len; in tls1_prf_P_hash()
225 olen -= mac_len; in tls1_prf_P_hash()
/netbsd-src/external/bsd/wpa/dist/src/eap_common/
H A Deap_eke_common.c93 int mac_len; in eap_eke_pnonce_len() local
96 mac_len = SHA1_MAC_LEN; in eap_eke_pnonce_len()
98 mac_len = SHA256_MAC_LEN; in eap_eke_pnonce_len()
102 return AES_BLOCK_SIZE + 16 + mac_len; in eap_eke_pnonce_len()
108 int mac_len; in eap_eke_pnonce_ps_len() local
111 mac_len = SHA1_MAC_LEN; in eap_eke_pnonce_ps_len()
113 mac_len = SHA256_MAC_LEN; in eap_eke_pnonce_ps_len()
117 return AES_BLOCK_SIZE + 2 * 16 + mac_len; in eap_eke_pnonce_ps_len()
/netbsd-src/tests/crypto/opencrypto/
H A Dh_sha2hmac.c45 size_t mac_len; member
/netbsd-src/sys/dev/marvell/
H A Dmvxpsec.c1325 int mac_start, mac_len, mac_offset; in mvxpsec_header_finalize() local
1335 mac_len = mv_p->mac_len; in mvxpsec_header_finalize()
1361 desc->acc_macsrc = MV_ACC_DESC_MAC_SRC(mac_start, mac_len); in mvxpsec_header_finalize()
1362 desc->acc_macdst = MV_ACC_DESC_MAC_DST(mac_offset, mac_len); in mvxpsec_header_finalize()
2307 mv_p->mac_len = crd->crd_len; in mvxpsec_parse_crd()
2319 mv_p->mac_len = crd->crd_len; in mvxpsec_parse_crd()
3058 mv_p->mac_off = mv_p->mac_dst = mv_p->mac_len = 0; in mvxpsec_packet_reset_op()
H A Dmvxpsecvar.h307 uint32_t mac_len; member