| /netbsd/src/crypto/external/bsd/openssh/dist/ |
| D | cipher-chachapoly.c | 68 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument 87 const u_char *tag = src + aadlen + len; in chachapoly_crypt() 89 poly1305_auth(expected_tag, src, aadlen + len, poly_key); in chachapoly_crypt() 97 if (aadlen) { in chachapoly_crypt() 99 chacha_encrypt_bytes(&ctx->header_ctx, src, dest, aadlen); in chachapoly_crypt() 104 chacha_encrypt_bytes(&ctx->main_ctx, src + aadlen, in chachapoly_crypt() 105 dest + aadlen, len); in chachapoly_crypt() 109 poly1305_auth(dest + aadlen + len, dest, aadlen + len, in chachapoly_crypt()
|
| D | cipher-chachapoly-libcrypto.c | 84 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument 106 const u_char *tag = src + aadlen + len; in chachapoly_crypt() 108 poly1305_auth(expected_tag, src, aadlen + len, poly_key); in chachapoly_crypt() 116 if (aadlen) { in chachapoly_crypt() 118 EVP_Cipher(ctx->header_evp, dest, src, aadlen) < 0) { in chachapoly_crypt() 127 EVP_Cipher(ctx->main_evp, dest + aadlen, src + aadlen, len) < 0) { in chachapoly_crypt() 134 poly1305_auth(dest + aadlen + len, dest, aadlen + len, in chachapoly_crypt()
|
| D | cipher.c | 377 const u_char *src, u_int len, u_int aadlen, u_int authlen) in cipher_crypt() argument 381 len, aadlen, authlen, cc->encrypt); in cipher_crypt() 384 memcpy(dest, src, aadlen + len); in cipher_crypt() 389 if (aadlen) in cipher_crypt() 390 memcpy(dest, src, aadlen); in cipher_crypt() 391 aesctr_encrypt_bytes(&cc->ac_ctx, src + aadlen, in cipher_crypt() 392 dest + aadlen, len); in cipher_crypt() 409 authlen, __UNCONST(src + aadlen + len)) <= 0) in cipher_crypt() 412 if (aadlen) { in cipher_crypt() 414 EVP_Cipher(cc->evp, NULL, (const u_char *)src, aadlen) < 0) in cipher_crypt() [all …]
|
| D | packet.c | 1150 u_int authlen = 0, aadlen = 0; in ssh_packet_send2_wrapped() local 1166 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_send2_wrapped() 1202 len -= aadlen; /* packet length is not encrypted for EtM modes */ in ssh_packet_send2_wrapped() 1247 len, padlen, aadlen)); in ssh_packet_send2_wrapped() 1263 len - aadlen, aadlen, authlen)) != 0) in ssh_packet_send2_wrapped() 1551 u_int maclen, aadlen = 0, authlen = 0, block_size; in ssh_packet_read_poll2() local 1575 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_read_poll2() 1577 if (aadlen && state->packlen == 0) { in ssh_packet_read_poll2() 1626 if (aadlen) { in ssh_packet_read_poll2() 1637 " aadlen %d", block_size, need, maclen, authlen, aadlen)); in ssh_packet_read_poll2() [all …]
|
| D | sshkey-xmss.c | 894 size_t i, keylen, ivlen, blocksize, authlen, encrypted_len, aadlen; in sshkey_xmss_encrypt_state() local 945 aadlen = sshbuf_len(encoded); in sshkey_xmss_encrypt_state() 954 encrypted_len + aadlen + authlen, &cp)) != 0 || in sshkey_xmss_encrypt_state() 958 encrypted_len, aadlen, authlen)) != 0) in sshkey_xmss_encrypt_state() 985 size_t keylen, ivlen, authlen, aadlen; in sshkey_xmss_decrypt_state() local 1040 aadlen = sshbuf_len(copy) - sshbuf_len(encoded); in sshkey_xmss_decrypt_state() 1047 if ((r = sshbuf_reserve(decrypted, aadlen + encrypted_len, &dp)) != 0 || in sshkey_xmss_decrypt_state() 1051 encrypted_len, aadlen, authlen)) != 0) in sshkey_xmss_decrypt_state() 1063 if ((r = sshbuf_consume(decrypted, aadlen)) != 0) in sshkey_xmss_decrypt_state()
|
| D | cipher-chachapoly.h | 35 u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen,
|
| /netbsd/src/crypto/external/bsd/openssl/dist/util/ |
| D | cavs-to-evptest.pl | 23 my $aadlen = 0; 49 $aadlen = $2; 87 $aadlen = $2; 95 if ($aadlen > 0) {
|