| /freebsd-12.1/crypto/openssh/ |
| H A D | cipher.c | 336 const u_char *src, u_int len, u_int aadlen, u_int authlen) in cipher_crypt() argument 340 len, aadlen, authlen, cc->encrypt); in cipher_crypt() 356 if (authlen) { in cipher_crypt() 359 if (authlen != cipher_authlen(cc->cipher)) in cipher_crypt() 368 authlen, (u_char *)src + aadlen + len)) in cipher_crypt() 372 if (authlen && in cipher_crypt() 382 if (authlen) { in cipher_crypt() 389 authlen, dest + aadlen + len)) in cipher_crypt()
|
| H A D | sshkey-xmss.c | 840 size_t i, keylen, ivlen, blocksize, authlen, encrypted_len, aadlen; in sshkey_xmss_encrypt_state() local 856 authlen = cipher_authlen(cipher); in sshkey_xmss_encrypt_state() 900 encrypted_len + aadlen + authlen, &cp)) != 0 || in sshkey_xmss_encrypt_state() 904 encrypted_len, aadlen, authlen)) != 0) in sshkey_xmss_encrypt_state() 931 size_t keylen, ivlen, authlen, aadlen; in sshkey_xmss_decrypt_state() local 948 authlen = cipher_authlen(cipher); in sshkey_xmss_decrypt_state() 980 if (sshbuf_len(encoded) < encrypted_len + authlen) { in sshkey_xmss_decrypt_state() 996 encrypted_len, aadlen, authlen)) != 0) in sshkey_xmss_decrypt_state() 1000 if ((r = sshbuf_consume(encoded, encrypted_len + authlen)) != 0) in sshkey_xmss_decrypt_state()
|
| H A D | cipher-chachapoly.h | 35 u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen,
|
| H A D | packet.c | 1034 u_int authlen = 0, aadlen = 0; in ssh_packet_send2_wrapped() local 1046 if ((authlen = cipher_authlen(enc->cipher)) != 0) in ssh_packet_send2_wrapped() 1050 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_send2_wrapped() 1143 sshbuf_len(state->outgoing_packet) + authlen, &cp)) != 0) in ssh_packet_send2_wrapped() 1147 len - aadlen, aadlen, authlen)) != 0) in ssh_packet_send2_wrapped() 1451 u_int maclen, aadlen = 0, authlen = 0, block_size; in ssh_packet_read_poll2() local 1470 if ((authlen = cipher_authlen(enc->cipher)) != 0) in ssh_packet_read_poll2() 1475 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_read_poll2() 1537 " aadlen %d", block_size, need, maclen, authlen, aadlen)); in ssh_packet_read_poll2() 1562 sshbuf_ptr(state->input) + aadlen + need + authlen, in ssh_packet_read_poll2() [all …]
|
| H A D | cipher-chachapoly.c | 53 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 | 823 u_int mode, ctos, need, dh_need, authlen; in kex_choose_conf() local 880 authlen = cipher_authlen(newkeys->enc.cipher); in kex_choose_conf() 882 if (authlen == 0 && in kex_choose_conf() 898 authlen == 0 ? newkeys->mac.name : "<implicit>", in kex_choose_conf()
|
| H A D | sshkey.c | 3360 size_t i, pubkeylen, keylen, ivlen, blocksize, authlen; in sshkey_private_to_blob2() local 3389 authlen = cipher_authlen(cipher); in sshkey_private_to_blob2() 3449 sshbuf_len(encrypted) + authlen, &cp)) != 0) in sshkey_private_to_blob2() 3452 sshbuf_ptr(encrypted), sshbuf_len(encrypted), 0, authlen)) != 0) in sshkey_private_to_blob2() 3509 size_t i, keylen = 0, ivlen = 0, authlen = 0, slen = 0; in sshkey_parse_private2() local 3618 authlen = cipher_authlen(cipher); in sshkey_parse_private2() 3635 if (sshbuf_len(decoded) < encrypted_len + authlen) { in sshkey_parse_private2() 3646 encrypted_len, 0, authlen)) != 0) { in sshkey_parse_private2() 3652 if ((r = sshbuf_consume(decoded, encrypted_len + authlen)) != 0) in sshkey_parse_private2()
|
| /freebsd-12.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() 341 int authlen = 0; in espprint_decode_encalgo() local 356 authlen = 12; in espprint_decode_encalgo() 368 sa->authlen = 0; in espprint_decode_encalgo() 374 sa->authlen = authlen; in espprint_decode_encalgo() 419 sa->authlen = 12; in espprint_decode_authalgo() 767 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-12.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-12.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-12.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() 1662 (authlen + has_mac), is_authentic)); in receive() 4058 size_t sendlen, authlen; in peer_xmit() local 4419 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()
|