| /freebsd-13.1/crypto/openssh/ |
| H A D | cipher.c | 348 const u_char *src, u_int len, u_int aadlen, u_int authlen) in cipher_crypt() argument 352 len, aadlen, authlen, cc->encrypt); in cipher_crypt() 368 if (authlen) { in cipher_crypt() 371 if (authlen != cipher_authlen(cc->cipher)) in cipher_crypt() 380 authlen, (u_char *)src + aadlen + len)) in cipher_crypt() 384 if (authlen && in cipher_crypt() 394 if (authlen) { in cipher_crypt() 401 authlen, dest + aadlen + len)) in cipher_crypt()
|
| H A D | sshkey-xmss.c | 897 size_t i, keylen, ivlen, blocksize, authlen, encrypted_len, aadlen; in sshkey_xmss_encrypt_state() local 913 authlen = cipher_authlen(cipher); in sshkey_xmss_encrypt_state() 957 encrypted_len + aadlen + authlen, &cp)) != 0 || in sshkey_xmss_encrypt_state() 961 encrypted_len, aadlen, authlen)) != 0) in sshkey_xmss_encrypt_state() 988 size_t keylen, ivlen, authlen, aadlen; in sshkey_xmss_decrypt_state() local 1005 authlen = cipher_authlen(cipher); in sshkey_xmss_decrypt_state() 1037 if (sshbuf_len(encoded) < authlen || in sshkey_xmss_decrypt_state() 1038 sshbuf_len(encoded) - authlen < encrypted_len) { in sshkey_xmss_decrypt_state() 1054 encrypted_len, aadlen, authlen)) != 0) in sshkey_xmss_decrypt_state() 1058 if ((r = sshbuf_consume(encoded, encrypted_len + authlen)) != 0) in sshkey_xmss_decrypt_state()
|
| H A D | cipher-chachapoly.h | 34 u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen,
|
| H A D | packet.c | 1077 u_int authlen = 0, aadlen = 0; in ssh_packet_send2_wrapped() local 1089 if ((authlen = cipher_authlen(enc->cipher)) != 0) in ssh_packet_send2_wrapped() 1093 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_send2_wrapped() 1186 sshbuf_len(state->outgoing_packet) + authlen, &cp)) != 0) in ssh_packet_send2_wrapped() 1190 len - aadlen, aadlen, authlen)) != 0) in ssh_packet_send2_wrapped() 1493 u_int maclen, aadlen = 0, authlen = 0, block_size; in ssh_packet_read_poll2() local 1512 if ((authlen = cipher_authlen(enc->cipher)) != 0) in ssh_packet_read_poll2() 1517 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_read_poll2() 1579 " aadlen %d", block_size, need, maclen, authlen, aadlen)); in ssh_packet_read_poll2() 1604 sshbuf_ptr(state->input) + aadlen + need + authlen, in ssh_packet_read_poll2() [all …]
|
| H A D | cipher-chachapoly.c | 71 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument
|
| H A D | cipher-chachapoly-libcrypto.c | 87 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument
|
| H A D | kex.c | 891 u_int mode, ctos, need, dh_need, authlen; in kex_choose_conf() local 948 authlen = cipher_authlen(newkeys->enc.cipher); in kex_choose_conf() 950 if (authlen == 0 && in kex_choose_conf() 966 authlen == 0 ? newkeys->mac.name : "<implicit>", in kex_choose_conf()
|
| H A D | sshkey.c | 3888 size_t i, pubkeylen, keylen, ivlen, blocksize, authlen; in sshkey_private_to_blob2() local 3917 authlen = cipher_authlen(cipher); in sshkey_private_to_blob2() 3977 sshbuf_len(encrypted) + authlen, &cp)) != 0) in sshkey_private_to_blob2() 3980 sshbuf_ptr(encrypted), sshbuf_len(encrypted), 0, authlen)) != 0) in sshkey_private_to_blob2() 4091 size_t keylen = 0, ivlen = 0, authlen = 0, slen = 0; in private2_decrypt() local 4156 authlen = cipher_authlen(cipher); in private2_decrypt() 4173 if (sshbuf_len(decoded) < authlen || in private2_decrypt() 4174 sshbuf_len(decoded) - authlen < encrypted_len) { in private2_decrypt() 4185 encrypted_len, 0, authlen)) != 0) { in private2_decrypt() 4191 if ((r = sshbuf_consume(decoded, encrypted_len + authlen)) != 0) in private2_decrypt()
|
| /freebsd-13.1/contrib/tcpdump/ |
| H A D | print-esp.c | 115 int authlen; member 216 end = end - sa->authlen; in esp_print_decrypt_buffer_by_ikev2() 361 int authlen = 0; in espprint_decode_encalgo() local 376 authlen = 12; in espprint_decode_encalgo() 388 sa->authlen = 0; in espprint_decode_encalgo() 394 sa->authlen = authlen; in espprint_decode_encalgo() 439 sa->authlen = 12; in espprint_decode_authalgo() 790 ep = ep - sa->authlen; in esp_print()
|
| H A D | print-zephyr.c | 44 int authlen; member 186 PARSE_FIELD_INT(z.authlen); in zephyr_print()
|
| /freebsd-13.1/stand/libsa/ |
| H A D | rpc.c | 66 uint32_t authlen; /* auth length */ member 146 auth->authlen = 0; in rpc_call() 154 auth->authlen = htonl(sizeof(struct auth_unix)); in rpc_call() 190 x = ntohl(auth->authlen); in rpc_call()
|
| /freebsd-13.1/sys/nfs/ |
| H A D | krpc_subr.c | 83 u_int32_t authlen; /* auth length */ member 295 call->rpc_auth.authlen = txdr_unsigned(sizeof(struct auth_unix)); in krpc_call() 298 call->rpc_verf.authlen = 0; in krpc_call() 417 len += fxdr_unsigned(u_int32_t, reply->rp_auth.authlen); in krpc_call()
|
| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | ntp_proto.c | 631 int authlen; /* offset of MAC field */ in receive() local 816 authlen = LEN_PKT_NOMAC; in receive() 817 has_mac = rbufp->recv_length - authlen; in receive() 876 authlen += len; in receive() 1013 authlen, in receive() 1022 skeyid, authlen + has_mac, is_authentic, in receive() 1045 authlen, in receive() 1663 (authlen + has_mac), is_authentic)); in receive() 4065 size_t sendlen, authlen; in peer_xmit() local 4426 if (authlen == 0) { in peer_xmit() [all …]
|
| H A D | ntp_crypto.c | 438 int authlen; /* offset of MAC field */ in crypto_recv() local 462 authlen = LEN_PKT_NOMAC; in crypto_recv() 464 while ((macbytes = rbufp->recv_length - authlen) > (int)MAX_MAC_LEN) { in crypto_recv() 469 pkt = (u_int32 *)&rbufp->recv_pkt + authlen / 4; in crypto_recv() 477 peer->crypto, authlen, len, code >> 16, in crypto_recv() 1066 authlen += (len + 3) / 4 * 4; in crypto_recv()
|