| /freebsd-13.1/crypto/openssl/crypto/pkcs12/ |
| H A D | p12_mutl.c | 71 unsigned char *mac, unsigned int *maclen, in pkcs12_gen_mac() argument 132 || !HMAC_Final(hmac, mac, maclen)) { in pkcs12_gen_mac() 144 unsigned char *mac, unsigned int *maclen) in PKCS12_gen_mac() argument 146 return pkcs12_gen_mac(p12, pass, passlen, mac, maclen, NULL); in PKCS12_gen_mac() 153 unsigned int maclen; in PKCS12_verify_mac() local 160 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, in PKCS12_verify_mac() 166 if ((maclen != (unsigned int)ASN1_STRING_length(macoct)) in PKCS12_verify_mac() 167 || CRYPTO_memcmp(mac, ASN1_STRING_get0_data(macoct), maclen) != 0) in PKCS12_verify_mac() 180 unsigned int maclen; in PKCS12_set_mac() local 192 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, in PKCS12_set_mac() [all …]
|
| H A D | p12_npas.c | 67 unsigned int maclen; in newpass_p12() local 111 if (!PKCS12_gen_mac(p12, newpass, -1, mac, &maclen)) in newpass_p12() 114 if (!ASN1_OCTET_STRING_set(macoct, mac, maclen)) in newpass_p12()
|
| /freebsd-13.1/tests/sys/opencrypto/ |
| H A D | cryptotest.py | 126 maclen=16) 265 mackey=key, maclen=Tlen, ivlen=Nlen) 306 mackey=key, maclen=Tlen, ivlen=Nlen) 372 maclen=hashlen) 433 crid=crid, maclen=hashlen)
|
| H A D | cryptodev.py | 177 crid=CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_HARDWARE, maclen=None, argument 180 self._maclen = maclen 202 if maclen: 203 ses.maclen = maclen
|
| /freebsd-13.1/contrib/ntp/ntpq/ |
| H A D | ntpq.c | 1138 int maclen; in getresponse() local 1147 maclen = n - shouldbesize; in getresponse() 1148 if (maclen >= (int)MIN_MAC_LEN) { in getresponse() 1151 n, shouldbesize, maclen); in getresponse() 1157 (u_long)ntohl(lpkt[(n - maclen)/sizeof(u_int32)]), in getresponse() 1160 key = ntohl(lpkt[(n - maclen) / sizeof(u_int32)]); in getresponse() 1166 n - maclen, maclen)) { in getresponse() 1300 size_t maclen; in sendrequest() local 1381 if (!maclen) { in sendrequest() 1387 maclen, (info_auth_hashlen + sizeof(keyid_t)), in sendrequest() [all …]
|
| /freebsd-13.1/contrib/ntp/ntpdc/ |
| H A D | ntpdc.c | 887 size_t maclen; in sendrequest() local 950 maclen = authencrypt( in sendrequest() 952 if (!maclen) { in sendrequest() 955 } else if (maclen != (size_t)(info_auth_hashlen + sizeof(keyid_t))) { in sendrequest() 958 maclen, (info_auth_hashlen + sizeof(keyid_t)), in sendrequest() 962 return sendpkt(&qpkt, reqsize + maclen); in sendrequest()
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | packet.c | 1493 u_int maclen, aadlen = 0, authlen = 0, block_size; in ssh_packet_read_poll2() local 1515 maclen = mac && mac->enabled ? mac->mac_len : 0; in ssh_packet_read_poll2() 1579 " aadlen %d", block_size, need, maclen, authlen, aadlen)); in ssh_packet_read_poll2() 1594 if (sshbuf_len(state->input) < aadlen + need + authlen + maclen) in ssh_packet_read_poll2() 1605 maclen)) != 0) { in ssh_packet_read_poll2() 1624 sshbuf_ptr(state->input), maclen)) != 0) { in ssh_packet_read_poll2() 2302 size_t keylen, ivlen, maclen; in newkeys_from_blob() local 2334 (r = sshbuf_get_string(b, &mac->key, &maclen)) != 0) in newkeys_from_blob() 2336 if (maclen > mac->key_len) { in newkeys_from_blob() 2340 mac->key_len = maclen; in newkeys_from_blob()
|
| /freebsd-13.1/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zio_crypt.c | 387 uint_t plain_full_len, maclen; in zio_do_crypt_uio() local 396 maclen = cuio->uio_iov[cuio->uio_iovcnt - 1].iov_len; in zio_do_crypt_uio() 398 ASSERT(maclen <= ZIO_DATA_MAC_LEN); in zio_do_crypt_uio() 411 plain_full_len = datalen + maclen; in zio_do_crypt_uio() 422 ccmp.ulMACSize = maclen; in zio_do_crypt_uio() 433 gcmp.ulTagBits = CRYPTO_BYTES2BITS(maclen); in zio_do_crypt_uio() 451 cipherdata.cd_length = datalen + maclen; in zio_do_crypt_uio()
|
| /freebsd-13.1/sys/opencrypto/ |
| H A D | cryptodev.c | 107 int maclen; member 178 CP(*from, *to, maclen); in session2_op_from_32() 678 if (sop->maclen != 0) { in cse_create() 685 csp.csp_auth_mlen = sop->maclen; in cse_create() 709 if (sop->maclen != 0) in cse_create() 710 cse->hashsize = sop->maclen; in cse_create()
|
| H A D | cryptodev.h | 253 int maclen; /* length of MAC/tag */ member
|
| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | ntp_control.c | 860 size_t maclen; in ctl_error() local 881 CTL_HEADER_LEN + maclen); in ctl_error() 1182 size_t maclen; in process_control() local 1272 maclen = rbufp->recv_length - properlen; in process_control() 1274 maclen >= MIN_MAC_LEN && maclen <= MAX_MAC_LEN && in process_control() 1281 maclen)); in process_control() 1286 rbufp->recv_length - maclen, in process_control() 1287 maclen)) { in process_control() 1406 size_t maclen; in ctl_flushpkt() local 1468 maclen = authencrypt(res_keyid, in ctl_flushpkt() [all …]
|
| /freebsd-13.1/sys/dev/e1000/ |
| H A D | e1000_82575.h | 103 u32 maclen:7; member
|
| /freebsd-13.1/crypto/openssl/include/openssl/ |
| H A D | pkcs12.h | 173 unsigned char *mac, unsigned int *maclen);
|
| /freebsd-13.1/contrib/mandoc/ |
| H A D | roff.c | 1934 size_t maclen; in roff_parse() local 1944 maclen = roff_getname(r, &cp, ln, ppos); in roff_parse() 1947 r->current_string = roff_getstrn(r, mac, maclen, &deftype); in roff_parse() 1956 t = roffhash_find(r->reqtab, mac, maclen); in roff_parse() 1963 roff_setstrn(&r->strtab, mac, maclen, "", 0, 0); in roff_parse() 1964 roff_setstrn(&r->rentab, mac, maclen, NULL, 0, 0); in roff_parse()
|
| /freebsd-13.1/contrib/libpcap/ |
| H A D | pcap-linux.c | 4375 unsigned int sk_type, tp_reserve, maclen, tp_hdrlen, netoff, macoff; local 4515 maclen = (sk_type == SOCK_DGRAM) ? 0 : MAX_LINKHEADER_SIZE; 4531 netoff = TPACKET_ALIGN(tp_hdrlen + (maclen < 16 ? 16 : maclen)) + tp_reserve; 4543 macoff = netoff - maclen;
|
| /freebsd-13.1/contrib/ntp/ |
| H A D | CommitLog | 136425 Cleanup merge, remove redundant local maclen that triggered
|