Home
last modified time | relevance | path

Searched refs:auth_len (Results 1 – 16 of 16) sorted by relevance

/freebsd-12.1/sys/mips/cavium/cryptocteon/
H A Dcavium_crypto.c621 auth_len -= 8; in octo_null_md5_encrypt()
724 auth_len -= 8; in octo_null_sha1_encrypt()
867 if (auth_len > 0) { in octo_des_cbc_md5_encrypt()
869 auth_len -= 8; in octo_des_cbc_md5_encrypt()
1009 auth_len -= 8; in octo_des_cbc_md5_decrypt()
1169 auth_len -= 8; in octo_des_cbc_sha1_encrypt()
1312 auth_len -= 8; in octo_des_cbc_sha1_decrypt()
1497 auth_len -= 16; in octo_aes_cbc_md5_encrypt()
1659 auth_len -= 16; in octo_aes_cbc_md5_decrypt()
1848 auth_len -= 16; in octo_aes_cbc_sha1_encrypt()
[all …]
H A Dcryptocteonvar.h37 …*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…
H A Dcryptocteon.c272 int auth_off = 0, auth_len = 0, crypt_off = 0, crypt_len = 0, icv_off = 0; in cryptocteon_process() local
348 auth_len = maccrd->crd_len; in cryptocteon_process()
356 auth_len = maccrd->crd_len; in cryptocteon_process()
415 auth_off, auth_len, crypt_off, crypt_len, icv_off, ivp); in cryptocteon_process()
418 auth_off, auth_len, crypt_off, crypt_len, icv_off, ivp); in cryptocteon_process()
/freebsd-12.1/sys/crypto/aesni/
H A Daesni_ccm.c106 byte_ptr[0] = ((auth_len > 0) ? 1 : 0) * 64 | in cbc_mac_start()
113 if (auth_len != 0) { in cbc_mac_start()
128 KASSERT(auth_len < (1ULL << 32), in cbc_mac_start()
130 __FUNCTION__, auth_len)); in cbc_mac_start()
132 if (auth_len < ((1 << 16) - (1 << 8))) { in cbc_mac_start()
139 be16enc(&staging_block, auth_len); in cbc_mac_start()
141 } else if (auth_len < (1ULL << 32)) { in cbc_mac_start()
148 be32enc((char*)&staging_block + 2, auth_len); in cbc_mac_start()
158 copy_amt = MIN(auth_len - auth_amt, in cbc_mac_start()
166 while (auth_ptr < auth_data + auth_len) { in cbc_mac_start()
[all …]
/freebsd-12.1/contrib/tcpdump/
H A Dprint-bfd.c95 uint8_t auth_len; member
192 bfd_auth_header->auth_len)); in auth_print()
209 if (bfd_auth_header->auth_len < AUTH_PASSWORD_FIELD_MIN_LEN || in auth_print()
210 bfd_auth_header->auth_len > AUTH_PASSWORD_FIELD_MAX_LEN) { in auth_print()
212 bfd_auth_header->auth_len)); in auth_print()
218 if (fn_printn(ndo, pptr, bfd_auth_header->auth_len - 3, in auth_print()
239 if (bfd_auth_header->auth_len != AUTH_MD5_FIELD_LEN) { in auth_print()
241 bfd_auth_header->auth_len)); in auth_print()
270 if (bfd_auth_header->auth_len != AUTH_SHA1_FIELD_LEN) { in auth_print()
272 bfd_auth_header->auth_len)); in auth_print()
/freebsd-12.1/sys/rpc/
H A Dsvc_auth_unix.c73 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-12.1/lib/libc/rpc/
H A Dsvc_auth_unix.c72 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-12.1/contrib/wpa/src/ap/
H A Dwpa_auth_ft.c527 size_t plain_len = 0, auth_len = 0; in wpa_ft_rrb_build() local
554 pos = auth + auth_len; in wpa_ft_rrb_build()
560 auth_len += pad_len; in wpa_ft_rrb_build()
568 WPA_PUT_LE16(pos, auth_len); in wpa_ft_rrb_build()
570 os_memcpy(pos, auth, auth_len); in wpa_ft_rrb_build()
571 pos += auth_len; in wpa_ft_rrb_build()
881 size_t auth_len; member
885 const u8 *auth, size_t auth_len,
978 if (auth && auth_len > 0) { in wpa_ft_rrb_seq_req()
980 item->auth_len = auth_len; in wpa_ft_rrb_seq_req()
[all …]
/freebsd-12.1/contrib/wpa/src/eap_server/
H A Dikev2.c589 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-12.1/contrib/wpa/src/eap_peer/
H A Dikev2.c521 u8 method, const u8 *auth, size_t auth_len) in ikev2_process_auth_cert() argument
536 size_t auth_len) in ikev2_process_auth_secret() argument
566 if (auth_len != prf->hash_len || in ikev2_process_auth_secret()
567 os_memcmp_const(auth, auth_data, auth_len) != 0) { in ikev2_process_auth_secret()
570 auth, auth_len); in ikev2_process_auth_secret()
586 const u8 *auth, size_t auth_len) in ikev2_process_auth() argument
595 if (auth_len < 4) { in ikev2_process_auth()
603 auth_len -= 4; in ikev2_process_auth()
611 auth_len); in ikev2_process_auth()
614 auth_len); in ikev2_process_auth()
[all …]
/freebsd-12.1/contrib/wpa/src/eap_common/
H A Deap_eke_common.c411 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 Deap_eke_common.h75 int auth_len; member
H A Dikev2_common.h307 size_t auth_len; member
H A Dikev2_common.c313 payloads->auth_len = pdatalen; in ikev2_parse_payloads()
/freebsd-12.1/crypto/openssh/
H A Dcipher.c69 u_int auth_len; member
127 if (auth_only && c->auth_len == 0) in cipher_alg_list()
166 return (c->auth_len); in cipher_authlen()
/freebsd-12.1/sys/netinet/
H A Dsctp_input.c1493 int auth_skipped, uint32_t auth_offset, uint32_t auth_len,
1510 int auth_skipped, uint32_t auth_offset, uint32_t auth_len, in sctp_process_cookie_existing() argument
1921 auth_skipped, auth_offset, auth_len, in sctp_process_cookie_existing()
2720 auth_skipped, auth_offset, auth_len, in sctp_handle_cookie_echo()
2729 &notification, auth_skipped, auth_offset, auth_len, in sctp_handle_cookie_echo()
4559 uint32_t auth_offset = 0, auth_len = 0; in sctp_process_control() local
4607 auth_len = ntohs(ch->chunk_length); in sctp_process_control()
4610 *offset += SCTP_SIZE32(auth_len); in sctp_process_control()
4667 auth_len, chunk_buf); in sctp_process_control()
5181 auth_len, in sctp_process_control()
[all …]