| /freebsd-13.1/sys/crypto/aesni/ |
| H A D | aesni_ccm.c | 110 byte_ptr[0] = ((auth_len > 0) ? 1 : 0) * 64 | in cbc_mac_start() 117 if (auth_len != 0) { in cbc_mac_start() 132 KASSERT(auth_len < (1ULL << 32), in cbc_mac_start() 134 __FUNCTION__, auth_len)); in cbc_mac_start() 136 if (auth_len < ((1 << 16) - (1 << 8))) { in cbc_mac_start() 143 be16enc(&staging_block, auth_len); in cbc_mac_start() 145 } else if (auth_len < (1ULL << 32)) { in cbc_mac_start() 152 be32enc((char*)&staging_block + 2, auth_len); in cbc_mac_start() 162 copy_amt = MIN(auth_len, in cbc_mac_start() 170 while (auth_ptr < auth_data + auth_len) { in cbc_mac_start() [all …]
|
| /freebsd-13.1/sys/mips/cavium/cryptocteon/ |
| H A D | cavium_crypto.c | 327 int auth_off, int auth_len, in octo_aes_cbc_encrypt() argument 395 int auth_off, int auth_len, in octo_aes_cbc_decrypt() argument 466 int auth_off, int auth_len, in octo_null_sha1_encrypt() argument 498 while (auth_len > 0) { in octo_null_sha1_encrypt() 500 auth_len -= 8; in octo_null_sha1_encrypt() 587 (auth_len & 0x7) || in octo_aes_cbc_sha1_encrypt() 660 if (auth_len > 0) { in octo_aes_cbc_sha1_encrypt() 663 auth_len -= 16; in octo_aes_cbc_sha1_encrypt() 778 (auth_len & 0x7) || in octo_aes_cbc_sha1_decrypt() 840 if (auth_len > 0) { in octo_aes_cbc_sha1_decrypt() [all …]
|
| H A D | cryptocteon.c | 255 int auth_off, auth_len, crypt_off, crypt_len; in cryptocteon_process() local 289 auth_len = crp->crp_aad_length + crp->crp_payload_length; in cryptocteon_process() 292 auth_len = crypt_len; in cryptocteon_process() 385 auth_off, auth_len, crypt_off, crypt_len, icv, ivp); in cryptocteon_process() 388 auth_off, auth_len, crypt_off, crypt_len, icv, ivp); in cryptocteon_process()
|
| H A D | cryptocteonvar.h | 37 …*od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, i… 38 …*od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, i…
|
| /freebsd-13.1/contrib/tcpdump/ |
| H A D | print-bfd.c | 98 uint8_t auth_len; member 189 bfd_auth_header->auth_len)); in auth_print() 206 if (bfd_auth_header->auth_len < AUTH_PASSWORD_FIELD_MIN_LEN || in auth_print() 207 bfd_auth_header->auth_len > AUTH_PASSWORD_FIELD_MAX_LEN) { in auth_print() 209 bfd_auth_header->auth_len)); in auth_print() 215 if (fn_printn(ndo, pptr, bfd_auth_header->auth_len - 3, in auth_print() 236 if (bfd_auth_header->auth_len != AUTH_MD5_FIELD_LEN) { in auth_print() 238 bfd_auth_header->auth_len)); in auth_print() 267 if (bfd_auth_header->auth_len != AUTH_SHA1_FIELD_LEN) { in auth_print() 269 bfd_auth_header->auth_len)); in auth_print()
|
| /freebsd-13.1/sys/rpc/ |
| H A D | svc_auth_unix.c | 73 u_int auth_len; in _svcauth_unix() local 78 auth_len = (u_int)msg->rm_call.cb_cred.oa_length; in _svcauth_unix() 79 xdrmem_create(&xdrs, msg->rm_call.cb_cred.oa_base, auth_len, in _svcauth_unix() 81 buf = XDR_INLINE(&xdrs, auth_len); in _svcauth_unix() 113 if ((5 + gid_len) * BYTES_PER_XDR_UNIT + str_len > auth_len) { in _svcauth_unix() 115 (long)gid_len, (long)str_len, auth_len); in _svcauth_unix()
|
| /freebsd-13.1/lib/libc/rpc/ |
| H A D | svc_auth_unix.c | 72 u_int auth_len; in _svcauth_unix() local 83 auth_len = (u_int)msg->rm_call.cb_cred.oa_length; in _svcauth_unix() 84 xdrmem_create(&xdrs, msg->rm_call.cb_cred.oa_base, auth_len,XDR_DECODE); in _svcauth_unix() 85 buf = XDR_INLINE(&xdrs, auth_len); in _svcauth_unix() 112 if ((5 + gid_len) * BYTES_PER_XDR_UNIT + str_len > auth_len) { in _svcauth_unix() 114 (long)gid_len, (long)str_len, auth_len); in _svcauth_unix()
|
| /freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | crypto_os.c | 206 size_t auth_len) in freebsd_crypt_uio_debug_log() argument 330 size_t auth_len) in freebsd_crypt_uio() argument 338 key, ivbuf, datalen, auth_len); in freebsd_crypt_uio() 362 crp->crp_aad_length = auth_len; in freebsd_crypt_uio() 363 crp->crp_payload_start = auth_len; in freebsd_crypt_uio() 500 size_t auth_len) in freebsd_crypt_uio() argument 510 key, ivbuf, datalen, auth_len); in freebsd_crypt_uio() 579 crp->crp_ilen = auth_len + datalen; in freebsd_crypt_uio() 584 auth_desc->crd_len = auth_len; in freebsd_crypt_uio() 593 enc_desc->crd_skip = auth_len; in freebsd_crypt_uio() [all …]
|
| H A D | zio_crypt.c | 407 zfs_uio_t *uio, uint_t auth_len) in zio_do_crypt_uio_opencrypto() argument 419 datalen, auth_len); in zio_do_crypt_uio_opencrypto() 1408 *auth_len = aad_len; in zio_crypt_init_uios_zil() 1422 uint_t *auth_len, boolean_t *no_crypt) in zio_crypt_init_uios_dnode() argument 1557 *auth_len = aad_len; in zio_crypt_init_uios_dnode() 1625 uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) in zio_crypt_init_uios() argument 1642 auth_len, no_crypt); in zio_crypt_init_uios() 1648 *auth_len = 0; in zio_crypt_init_uios() 1687 uint_t enc_len, auth_len; in zio_do_crypt_data() local 1717 &authbuf, &auth_len, no_crypt); in zio_do_crypt_data() [all …]
|
| /freebsd-13.1/contrib/wpa/src/ap/ |
| H A D | wpa_auth_ft.c | 528 size_t plain_len = 0, auth_len = 0; in wpa_ft_rrb_build() local 555 pos = auth + auth_len; in wpa_ft_rrb_build() 561 auth_len += pad_len; in wpa_ft_rrb_build() 569 WPA_PUT_LE16(pos, auth_len); in wpa_ft_rrb_build() 571 os_memcpy(pos, auth, auth_len); in wpa_ft_rrb_build() 572 pos += auth_len; in wpa_ft_rrb_build() 882 size_t auth_len; member 886 const u8 *auth, size_t auth_len, 980 if (auth && auth_len > 0) { in wpa_ft_rrb_seq_req() 982 item->auth_len = auth_len; in wpa_ft_rrb_seq_req() [all …]
|
| /freebsd-13.1/contrib/wpa/src/eap_peer/ |
| H A D | ikev2.c | 523 u8 method, const u8 *auth, size_t auth_len) in ikev2_process_auth_cert() argument 538 size_t auth_len) in ikev2_process_auth_secret() argument 568 if (auth_len != prf->hash_len || in ikev2_process_auth_secret() 569 os_memcmp_const(auth, auth_data, auth_len) != 0) { in ikev2_process_auth_secret() 572 auth, auth_len); in ikev2_process_auth_secret() 588 const u8 *auth, size_t auth_len) in ikev2_process_auth() argument 597 if (auth_len < 4) { in ikev2_process_auth() 605 auth_len -= 4; in ikev2_process_auth() 613 auth_len); in ikev2_process_auth() 616 auth_len); in ikev2_process_auth() [all …]
|
| /freebsd-13.1/contrib/wpa/src/eap_server/ |
| H A D | ikev2.c | 589 u8 method, const u8 *auth, size_t auth_len) in ikev2_process_auth_cert() argument 604 size_t auth_len) in ikev2_process_auth_secret() argument 634 if (auth_len != prf->hash_len || in ikev2_process_auth_secret() 635 os_memcmp_const(auth, auth_data, auth_len) != 0) { in ikev2_process_auth_secret() 638 auth, auth_len); in ikev2_process_auth_secret() 652 const u8 *auth, size_t auth_len) in ikev2_process_auth() argument 661 if (auth_len < 4) { in ikev2_process_auth() 669 auth_len -= 4; in ikev2_process_auth() 677 auth_len); in ikev2_process_auth() 680 auth_len); in ikev2_process_auth() [all …]
|
| /freebsd-13.1/contrib/wpa/src/eap_common/ |
| H A D | eap_eke_common.c | 411 os_memset(zeros, 0, sess->auth_len); in eap_eke_shared_secret() 412 if (eap_eke_prf(sess->prf, zeros, sess->auth_len, modexp, dh->prime_len, in eap_eke_shared_secret() 416 sess->shared_secret, sess->auth_len); in eap_eke_shared_secret() 691 sess->ka, sess->auth_len); in eap_eke_auth() 693 return eap_eke_prf(sess->prf, sess->ka, sess->auth_len, in eap_eke_auth() 709 sess->auth_len = eap_eke_auth_len(prf); in eap_eke_session_init() 713 if (sess->prf_len < 0 || sess->nonce_len < 0 || sess->auth_len < 0 || in eap_eke_session_init()
|
| H A D | eap_eke_common.h | 75 int auth_len; member
|
| H A D | ikev2_common.h | 307 size_t auth_len; member
|
| H A D | ikev2_common.c | 313 payloads->auth_len = pdatalen; in ikev2_parse_payloads()
|
| /freebsd-13.1/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zio_crypt.c | 420 ccmp.ulAuthDataSize = auth_len; in zio_do_crypt_uio() 431 gcmp.ulAADLen = auth_len; in zio_do_crypt_uio() 1553 *auth_len = aad_len; in zio_crypt_init_uios_zil() 1578 *auth_len = 0; in zio_crypt_init_uios_zil() 1740 *auth_len = aad_len; in zio_crypt_init_uios_dnode() 1765 *auth_len = 0; in zio_crypt_init_uios_dnode() 1855 auth_len, no_crypt); in zio_crypt_init_uios() 1861 *auth_len = 0; in zio_crypt_init_uios() 1896 uint_t enc_len, auth_len; in zio_do_crypt_data() local 1969 &authbuf, &auth_len, no_crypt); in zio_do_crypt_data() [all …]
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | cipher.c | 72 u_int auth_len; member 128 if (auth_only && c->auth_len == 0) in cipher_alg_list() 178 return (c->auth_len); in cipher_authlen()
|
| /freebsd-13.1/sys/netinet/ |
| H A D | sctp_input.c | 1321 int auth_skipped, uint32_t auth_offset, uint32_t auth_len, 1746 auth_skipped, auth_offset, auth_len, in sctp_process_cookie_existing() 2107 if (auth_len <= SCTP_CHUNK_BUFFER_SIZE) { in sctp_process_cookie_new() 2544 auth_skipped, auth_offset, auth_len, in sctp_handle_cookie_echo() 2553 ¬ification, auth_skipped, auth_offset, auth_len, in sctp_handle_cookie_echo() 4339 uint32_t auth_offset = 0, auth_len = 0; in sctp_process_control() local 4384 auth_len = ntohs(ch->chunk_length); in sctp_process_control() 4387 *offset += SCTP_SIZE32(auth_len); in sctp_process_control() 4442 if (auth_len <= SCTP_CHUNK_BUFFER_SIZE) { in sctp_process_control() 4926 auth_len, in sctp_process_control() [all …]
|
| /freebsd-13.1/sys/dev/qat/ |
| H A D | qat_hw17.c | 626 auth_param->auth_len = crp->crp_payload_length; in qat_hw17_crypto_setup_req_params() 665 auth_param->auth_len = in qat_hw17_crypto_setup_req_params()
|
| H A D | qat_hw15reg.h | 621 uint32_t auth_len; member
|
| H A D | qat_hw15.c | 886 auth_req->auth_len = crp->crp_payload_length; in qat_hw15_crypto_setup_req_params() 956 auth_req->auth_len = in qat_hw15_crypto_setup_req_params()
|
| H A D | qat_hw17reg.h | 1904 uint32_t auth_len; member
|