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.c157 unsigned char tls_aad[POLY1305_BLOCK_SIZE]; member
236 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
261 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
294 Poly1305_Update(POLY1305_ctx(actx), actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
384 Poly1305_Update(POLY1305_ctx(actx), actx->tls_aad, in chacha20_poly1305_cipher()
517 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()
579 aad = actx->tls_aad; in chacha20_poly1305_ctrl()
H A De_aes_cbc_hmac_sha1.c37 unsigned char tls_aad[16]; /* 13 used */ member
501 if ((key->aux.tls_aad[plen - 4] << 8 | key->aux.tls_aad[plen - 3]) in aesni_cbc_hmac_sha1_cipher()
548 key->aux.tls_aad[plen - 2] = inp_len >> 8; in aesni_cbc_hmac_sha1_cipher()
549 key->aux.tls_aad[plen - 1] = inp_len; in aesni_cbc_hmac_sha1_cipher()
553 SHA1_Update(&key->md, key->aux.tls_aad, plen); in aesni_cbc_hmac_sha1_cipher()
833 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
530 if ((key->aux.tls_aad[plen - 4] << 8 | key->aux.tls_aad[plen - 3]) in aesni_cbc_hmac_sha256_cipher()
559 key->aux.tls_aad[plen - 2] = inp_len >> 8; in aesni_cbc_hmac_sha256_cipher()
560 key->aux.tls_aad[plen - 1] = inp_len; in aesni_cbc_hmac_sha256_cipher()
564 SHA256_Update(&key->md, key->aux.tls_aad, plen); in aesni_cbc_hmac_sha256_cipher()
814 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()
140 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
165 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
198 Poly1305_Update(poly, ctx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
297 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_sha.h42 unsigned char tls_aad[16]; /* 13 used */ member
H A Dcipher_aes_cbc_hmac_sha1_hw.c457 if ((ctx->aux.tls_aad[plen - 4] << 8 | ctx->aux.tls_aad[plen - 3]) in aesni_cbc_hmac_sha1_cipher()
492 ctx->aux.tls_aad[plen - 2] = inp_len >> 8; in aesni_cbc_hmac_sha1_cipher()
493 ctx->aux.tls_aad[plen - 1] = inp_len; in aesni_cbc_hmac_sha1_cipher()
497 sha1_update(&sctx->md, ctx->aux.tls_aad, plen); in aesni_cbc_hmac_sha1_cipher()
693 memcpy(ctx->aux.tls_aad, aad_rec, aad_len); in aesni_cbc_hmac_sha1_set_tls1_aad()
H A Dcipher_aes_cbc_hmac_sha256_hw.c499 if ((ctx->aux.tls_aad[plen - 4] << 8 | ctx->aux.tls_aad[plen - 3]) in aesni_cbc_hmac_sha256_cipher()
528 ctx->aux.tls_aad[plen - 2] = inp_len >> 8; in aesni_cbc_hmac_sha256_cipher()
529 ctx->aux.tls_aad[plen - 1] = inp_len; in aesni_cbc_hmac_sha256_cipher()
533 sha256_update(&sctx->md, ctx->aux.tls_aad, plen); in aesni_cbc_hmac_sha256_cipher()
746 memcpy(ctx->aux.tls_aad, p, aad_len); in aesni_cbc_hmac_sha256_set_tls1_aad()
/freebsd/crypto/openssl/test/
H A Devp_test.c538 int tls_aad; member
642 int tls_aad = 0; in cipher_test_parse() local
645 cdat->tls_aad = tls_aad = 1; in cipher_test_parse()
646 if (strcmp(keyword, "AAD") == 0 || tls_aad) { in cipher_test_parse()
771 if (expected->aead && !expected->tls_aad) { in cipher_test_enc()
908 if (expected->tls_aad) { in cipher_test_enc()
910 char *tls_aad; in cipher_test_enc() local
921 OPENSSL_free(tls_aad); in cipher_test_enc()
925 OPENSSL_free(tls_aad); in cipher_test_enc()
970 if (!enc && expected->tls_aad) { in cipher_test_enc()
[all …]