Home
last modified time | relevance | path

Searched refs:authlen (Results 1 – 8 of 8) sorted by relevance

/external/tcpdump/
Dprint-esp.c115 int authlen; member
155 end = end - sa->authlen; in esp_print_decrypt_buffer_by_ikev2()
259 int authlen = 0; in espprint_decode_encalgo() local
274 authlen = 12; in espprint_decode_encalgo()
286 sa->authlen = 0; in espprint_decode_encalgo()
292 sa->authlen = authlen; in espprint_decode_encalgo()
337 sa->authlen = 12; in espprint_decode_authalgo()
681 ep = ep - sa->authlen; in esp_print()
Dprint-zephyr.c43 int authlen; member
170 PARSE_FIELD_INT(z.authlen); in zephyr_print()
/external/openssh/
Dcipher.c392 const u_char *src, u_int len, u_int aadlen, u_int authlen) in cipher_crypt() argument
396 len, aadlen, authlen, cc->encrypt); in cipher_crypt()
412 if (authlen) { in cipher_crypt()
415 if (authlen != cipher_authlen(cc->cipher)) in cipher_crypt()
424 authlen, (u_char *)src + aadlen + len)) in cipher_crypt()
428 if (authlen && in cipher_crypt()
438 if (authlen) { in cipher_crypt()
445 authlen, dest + aadlen + len)) in cipher_crypt()
Dcipher-chachapoly.h35 u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen,
Dpacket.c1062 u_int authlen = 0, aadlen = 0; in ssh_packet_send2_wrapped() local
1074 if ((authlen = cipher_authlen(enc->cipher)) != 0) in ssh_packet_send2_wrapped()
1078 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_send2_wrapped()
1160 sshbuf_len(state->outgoing_packet) + authlen, &cp)) != 0) in ssh_packet_send2_wrapped()
1164 len - aadlen, aadlen, authlen)) != 0) in ssh_packet_send2_wrapped()
1548 u_int maclen, aadlen = 0, authlen = 0, block_size; in ssh_packet_read_poll2() local
1564 if ((authlen = cipher_authlen(enc->cipher)) != 0) in ssh_packet_read_poll2()
1569 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_read_poll2()
1631 " aadlen %d", block_size, need, maclen, authlen, aadlen)); in ssh_packet_read_poll2()
1646 if (sshbuf_len(state->input) < aadlen + need + authlen + maclen) in ssh_packet_read_poll2()
[all …]
Dcipher-chachapoly.c52 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument
Dkex.c654 u_int mode, ctos, need, dh_need, authlen; in kex_choose_conf() local
698 authlen = cipher_authlen(newkeys->enc.cipher); in kex_choose_conf()
700 if (authlen == 0 && in kex_choose_conf()
716 authlen == 0 ? newkeys->mac.name : "<implicit>", in kex_choose_conf()
Dsshkey.c2997 size_t i, pubkeylen, keylen, ivlen, blocksize, authlen; in sshkey_private_to_blob2() local
3032 authlen = cipher_authlen(cipher); in sshkey_private_to_blob2()
3091 sshbuf_len(encrypted) + authlen, &cp)) != 0) in sshkey_private_to_blob2()
3094 sshbuf_ptr(encrypted), sshbuf_len(encrypted), 0, authlen)) != 0) in sshkey_private_to_blob2()
3151 size_t i, keylen = 0, ivlen = 0, authlen = 0, slen = 0; in sshkey_parse_private2() local
3261 authlen = cipher_authlen(cipher); in sshkey_parse_private2()
3278 if (sshbuf_len(decoded) < encrypted_len + authlen) { in sshkey_parse_private2()
3289 encrypted_len, 0, authlen)) != 0) { in sshkey_parse_private2()
3295 if ((r = sshbuf_consume(decoded, encrypted_len + authlen)) != 0) in sshkey_parse_private2()