Home
last modified time | relevance | path

Searched refs:tls_aad (Results 1 – 9 of 9) sorted by relevance

/freebsd/crypto/openssl/crypto/evp/
H A De_chacha20_poly1305.c158 unsigned char tls_aad[POLY1305_BLOCK_SIZE]; member
238 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
263 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
296 Poly1305_Update(POLY1305_ctx(actx), actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
386 Poly1305_Update(POLY1305_ctx(actx), actx->tls_aad, in chacha20_poly1305_cipher()
518 memset(actx->tls_aad, 0, POLY1305_BLOCK_SIZE); in chacha20_poly1305_ctrl()
576 memcpy(actx->tls_aad, ptr, EVP_AEAD_TLS1_AAD_LEN); in chacha20_poly1305_ctrl()
578 aad = actx->tls_aad; in chacha20_poly1305_ctrl()
H A De_aes_cbc_hmac_sha1.c37 unsigned char tls_aad[16]; /* 13 used */ member
503 if ((key->aux.tls_aad[plen - 4] << 8 | key->aux.tls_aad[plen - 3]) in aesni_cbc_hmac_sha1_cipher()
550 key->aux.tls_aad[plen - 2] = inp_len >> 8; in aesni_cbc_hmac_sha1_cipher()
551 key->aux.tls_aad[plen - 1] = inp_len; in aesni_cbc_hmac_sha1_cipher()
555 SHA1_Update(&key->md, key->aux.tls_aad, plen); in aesni_cbc_hmac_sha1_cipher()
827 memcpy(key->aux.tls_aad, ptr, arg); in aesni_cbc_hmac_sha1_ctrl()
H A De_aes_cbc_hmac_sha256.c37 unsigned char tls_aad[16]; /* 13 used */ member
525 if ((key->aux.tls_aad[plen - 4] << 8 | key->aux.tls_aad[plen - 3]) in aesni_cbc_hmac_sha256_cipher()
554 key->aux.tls_aad[plen - 2] = inp_len >> 8; in aesni_cbc_hmac_sha256_cipher()
555 key->aux.tls_aad[plen - 1] = inp_len; in aesni_cbc_hmac_sha256_cipher()
559 SHA256_Update(&key->md, key->aux.tls_aad, plen); in aesni_cbc_hmac_sha256_cipher()
800 memcpy(key->aux.tls_aad, ptr, arg); in aesni_cbc_hmac_sha256_ctrl()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305_hw.c24 memcpy(ctx->tls_aad, aad, EVP_AEAD_TLS1_AAD_LEN); in chacha_poly1305_tls_init()
26 aad = ctx->tls_aad; in chacha_poly1305_tls_init()
139 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
164 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
197 Poly1305_Update(poly, ctx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
296 Poly1305_Update(poly, ctx->tls_aad, EVP_AEAD_TLS1_AAD_LEN); in chacha20_poly1305_aead_cipher()
H A Dcipher_chacha20_poly1305.h24 unsigned char tls_aad[POLY1305_BLOCK_SIZE]; member
H A Dcipher_aes_cbc_hmac_sha1_hw.c455 if ((ctx->aux.tls_aad[plen - 4] << 8 | ctx->aux.tls_aad[plen - 3]) in aesni_cbc_hmac_sha1_cipher()
490 ctx->aux.tls_aad[plen - 2] = inp_len >> 8; in aesni_cbc_hmac_sha1_cipher()
491 ctx->aux.tls_aad[plen - 1] = inp_len; in aesni_cbc_hmac_sha1_cipher()
495 sha1_update(&sctx->md, ctx->aux.tls_aad, plen); in aesni_cbc_hmac_sha1_cipher()
687 memcpy(ctx->aux.tls_aad, aad_rec, aad_len); in aesni_cbc_hmac_sha1_set_tls1_aad()
H A Dcipher_aes_cbc_hmac_sha.h42 unsigned char tls_aad[16]; /* 13 used */ member
H A Dcipher_aes_cbc_hmac_sha256_hw.c497 if ((ctx->aux.tls_aad[plen - 4] << 8 | ctx->aux.tls_aad[plen - 3]) in aesni_cbc_hmac_sha256_cipher()
526 ctx->aux.tls_aad[plen - 2] = inp_len >> 8; in aesni_cbc_hmac_sha256_cipher()
527 ctx->aux.tls_aad[plen - 1] = inp_len; in aesni_cbc_hmac_sha256_cipher()
531 sha256_update(&sctx->md, ctx->aux.tls_aad, plen); in aesni_cbc_hmac_sha256_cipher()
739 memcpy(ctx->aux.tls_aad, p, aad_len); in aesni_cbc_hmac_sha256_set_tls1_aad()
/freebsd/crypto/openssl/test/
H A Devp_test.c896 int tls_aad; member
1032 int tls_aad = 0; in cipher_test_parse() local
1035 cdat->tls_aad = tls_aad = 1; in cipher_test_parse()
1036 if (strcmp(keyword, "AAD") == 0 || tls_aad) { in cipher_test_parse()
1166 if (expected->aead && !expected->tls_aad) { in cipher_test_enc()
1287 if (expected->aad[0] != NULL && !expected->tls_aad) { in cipher_test_enc()
1331 if (expected->tls_aad) { in cipher_test_enc()
1333 char *tls_aad; in cipher_test_enc() local
1336 if ((tls_aad = OPENSSL_memdup(expected->aad[0], in cipher_test_enc()
1341 tls_aad, in cipher_test_enc()
[all …]