Home
last modified time | relevance | path

Searched refs:aadlen (Results 1 – 4 of 4) sorted by relevance

/dragonfly/crypto/openssh/
H A Dcipher-chachapoly-libcrypto.c87 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument
109 const u_char *tag = src + aadlen + len; in chachapoly_crypt()
111 poly1305_auth(expected_tag, src, aadlen + len, poly_key); in chachapoly_crypt()
119 if (aadlen) { in chachapoly_crypt()
121 EVP_Cipher(ctx->header_evp, dest, src, aadlen) < 0) { in chachapoly_crypt()
130 EVP_Cipher(ctx->main_evp, dest + aadlen, src + aadlen, len) < 0) { in chachapoly_crypt()
137 poly1305_auth(dest + aadlen + len, dest, aadlen + len, in chachapoly_crypt()
H A Dcipher.c350 len, aadlen, authlen, cc->encrypt); in cipher_crypt()
353 memcpy(dest, src, aadlen + len); in cipher_crypt()
358 if (aadlen) in cipher_crypt()
359 memcpy(dest, src, aadlen); in cipher_crypt()
360 aesctr_encrypt_bytes(&cc->ac_ctx, src + aadlen, in cipher_crypt()
361 dest + aadlen, len); in cipher_crypt()
378 authlen, (u_char *)src + aadlen + len)) in cipher_crypt()
381 if (aadlen) { in cipher_crypt()
385 memcpy(dest, src, aadlen); in cipher_crypt()
389 if (EVP_Cipher(cc->evp, dest + aadlen, (u_char *)src + aadlen, in cipher_crypt()
[all …]
H A Dpacket.c1075 u_int authlen = 0, aadlen = 0; in ssh_packet_send2_wrapped() local
1091 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_send2_wrapped()
1172 len, padlen, aadlen)); in ssh_packet_send2_wrapped()
1188 len - aadlen, aadlen, authlen)) != 0) in ssh_packet_send2_wrapped()
1484 u_int maclen, aadlen = 0, authlen = 0, block_size; in ssh_packet_read_poll2() local
1508 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_read_poll2()
1510 if (aadlen && state->packlen == 0) { in ssh_packet_read_poll2()
1559 if (aadlen) { in ssh_packet_read_poll2()
1594 sshbuf_ptr(state->input), aadlen + need, in ssh_packet_read_poll2()
1595 sshbuf_ptr(state->input) + aadlen + need + authlen, in ssh_packet_read_poll2()
[all …]
H A Dcipher-chachapoly.h34 u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen,