Home
last modified time | relevance | path

Searched refs:ad_len (Results 1 – 15 of 15) sorted by relevance

/external/boringssl/src/crypto/cipher_extra/
De_chacha20poly1305.c93 size_t ad_len, union open_data *aead_data);
103 size_t ad_len, union seal_data *aead_data);
111 size_t ad_len, union open_data *aead_data) {} in chacha20_poly1305_open() argument
116 size_t ad_len, union seal_data *aead_data) {} in chacha20_poly1305_seal() argument
158 const uint8_t nonce[12], const uint8_t *ad, size_t ad_len, in calc_tag() argument
170 CRYPTO_poly1305_update(&ctx, ad, ad_len); in calc_tag()
171 if (ad_len % 16 != 0) { in calc_tag()
172 CRYPTO_poly1305_update(&ctx, padding, sizeof(padding) - (ad_len % 16)); in calc_tag()
181 poly1305_update_length(&ctx, ad_len); in calc_tag()
190 size_t extra_in_len, const uint8_t *ad, size_t ad_len, size_t tag_len) { in chacha20_poly1305_seal_scatter() argument
[all …]
De_aesgcmsiv.c226 size_t in_len, const uint8_t *ad, size_t ad_len, in gcm_siv_asm_polyval() argument
230 const size_t ad_blocks = ad_len / 16; in gcm_siv_asm_polyval()
241 aesgcmsiv_htable_polyval(htable, ad, ad_len & ~15, out_tag); in gcm_siv_asm_polyval()
247 if (ad_len & 15) { in gcm_siv_asm_polyval()
249 OPENSSL_memcpy(scratch, &ad[ad_len & ~15], ad_len & 15); in gcm_siv_asm_polyval()
273 length_block.bitlens.ad = ad_len * 8; in gcm_siv_asm_polyval()
345 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_siv_asm_seal_scatter() argument
348 const uint64_t ad_len_64 = ad_len; in aead_aes_gcm_siv_asm_seal_scatter()
372 gcm_siv_asm_polyval(tag, in, in_len, ad, ad_len, in aead_aes_gcm_siv_asm_seal_scatter()
415 const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_siv_asm_open() argument
[all …]
De_aesctrhmac.c122 const uint8_t *ad, size_t ad_len, in hmac_calculate() argument
127 hmac_update_uint64(&sha256, ad_len); in hmac_calculate()
130 SHA256_Update(&sha256, ad, ad_len); in hmac_calculate()
135 EVP_AEAD_AES_CTR_HMAC_SHA256_NONCE_LEN + ad_len) % in hmac_calculate()
180 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in aead_aes_ctr_hmac_sha256_seal_scatter() argument
205 &aes_ctx->outer_init_state, ad, ad_len, nonce, out, in_len); in aead_aes_ctr_hmac_sha256_seal_scatter()
215 size_t in_tag_len, const uint8_t *ad, size_t ad_len) { in aead_aes_ctr_hmac_sha256_open_gather() argument
231 &aes_ctx->outer_init_state, ad, ad_len, nonce, in, in aead_aes_ctr_hmac_sha256_open_gather()
Daead_test.cc48 size_t ad_len; member
557 const size_t ad_len = in TEST_P() local
558 GetParam().ad_len != 0 ? GetParam().ad_len : sizeof(ad) - 1; in TEST_P()
559 ASSERT_GE(sizeof(ad) - 1, ad_len); in TEST_P()
571 ad_len)); in TEST_P()
582 ciphertext_len, ad + 1, ad_len)); in TEST_P()
629 const size_t ad_len = GetParam().ad_len != 0 ? GetParam().ad_len : 16; in TEST_P() local
630 ASSERT_LE(ad_len, sizeof(kZeros)); in TEST_P()
644 0, kZeros /* ad */, ad_len)); in TEST_P()
658 sizeof(kZeros), kZeros /* ad */, ad_len)); in TEST_P()
De_tls.c129 const size_t ad_len) { in aead_tls_seal_scatter() argument
154 if (ad_len != 13 - 2 /* length bytes */) { in aead_tls_seal_scatter()
170 !HMAC_Update(&tls_ctx->hmac_ctx, ad, ad_len) || in aead_tls_seal_scatter()
245 const uint8_t *ad, size_t ad_len) { in aead_tls_open() argument
271 if (ad_len != 13 - 2 /* length bytes */) { in aead_tls_open()
336 ad_len += 2; in aead_tls_open()
362 !HMAC_Update(&tls_ctx->hmac_ctx, ad_fixed, ad_len) || in aead_tls_open()
De_aesccm.c327 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in aead_aes_ccm_seal_scatter() argument
348 ad_len)) { in aead_aes_ccm_seal_scatter()
361 const uint8_t *ad, size_t ad_len) { in aead_aes_ccm_open_gather() argument
384 ad_len)) { in aead_aes_ccm_open_gather()
/external/boringssl/src/crypto/fipsmodule/cipher/
Daead.c118 const uint8_t *ad, size_t ad_len) { in EVP_AEAD_CTX_seal() argument
137 in_len, NULL, 0, ad, ad_len)) { in EVP_AEAD_CTX_seal()
154 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in EVP_AEAD_CTX_seal_scatter() argument
170 extra_in_len, ad, ad_len)) { in EVP_AEAD_CTX_seal_scatter()
186 const uint8_t *ad, size_t ad_len) { in EVP_AEAD_CTX_open() argument
194 in_len, ad, ad_len)) { in EVP_AEAD_CTX_open()
215 in + plaintext_len, ctx->tag_len, ad, ad_len)) { in EVP_AEAD_CTX_open()
233 const uint8_t *ad, size_t ad_len) { in EVP_AEAD_CTX_open_gather() argument
245 in_tag_len, ad, ad_len)) { in EVP_AEAD_CTX_open_gather()
Dinternal.h95 size_t ad_len);
101 size_t extra_in_len, const uint8_t *ad, size_t ad_len);
106 const uint8_t *ad, size_t ad_len);
De_aes.c945 const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_seal_scatter() argument
968 if (ad_len > 0 && !CRYPTO_gcm128_aad(&gcm, ad, ad_len)) { in aead_aes_gcm_seal_scatter()
1006 const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_open_gather() argument
1027 if (!CRYPTO_gcm128_aad(&gcm, ad, ad_len)) { in aead_aes_gcm_open_gather()
1131 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_tls12_seal_scatter() argument
1155 in_len, extra_in, extra_in_len, ad, ad_len); in aead_aes_gcm_tls12_seal_scatter()
1226 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_tls13_seal_scatter() argument
1261 in_len, extra_in, extra_in_len, ad, ad_len); in aead_aes_gcm_tls13_seal_scatter()
/external/boringssl/src/include/openssl/
Daead.h276 const uint8_t *ad, size_t ad_len);
301 const uint8_t *ad, size_t ad_len);
338 const uint8_t *ad, size_t ad_len);
358 size_t in_tag_len, const uint8_t *ad, size_t ad_len);
/external/boringssl/src/tool/
Dspeed.cc353 size_t chunk_len, size_t ad_len, in SpeedAEADChunk() argument
375 std::unique_ptr<uint8_t[]> ad(new uint8_t[ad_len]); in SpeedAEADChunk()
376 OPENSSL_memset(ad.get(), 0, ad_len); in SpeedAEADChunk()
400 [chunk_len, nonce_len, ad_len, overhead_len, in, out, tag, in SpeedAEADChunk()
406 ad.get(), ad_len); in SpeedAEADChunk()
415 nonce.get(), nonce_len, in, chunk_len, ad.get(), ad_len); in SpeedAEADChunk()
427 [chunk_len, overhead_len, nonce_len, ad_len, in2, out, in SpeedAEADChunk()
435 out_len, ad.get(), ad_len); in SpeedAEADChunk()
449 size_t ad_len, const std::string &selected) { in SpeedAEAD() argument
455 if (!SpeedAEADChunk(aead, name, chunk_len, ad_len, evp_aead_seal)) { in SpeedAEAD()
[all …]
/external/boringssl/src/crypto/cipher_extra/test/
Dxchacha20_poly1305_tests.txt20 # for (size_t ad_len = 0; ad_len < sizeof(ad); ad_len += 4) {
25 # randombytes(ad, ad_len);
30 # c, tag, &tag_len, m, m_len, ad, ad_len, NULL, nonce, key)) {
41 # hexdump(ad, ad_len);
/external/wpa_supplicant_8/src/crypto/
Dtls_internal.c490 size_t res_len, ad_len; in tls_connection_handshake2() local
500 &res_len, &ad, &ad_len, need_more_data); in tls_connection_handshake2()
511 *appl_data = wpabuf_alloc_ext_data(ad, ad_len); in tls_connection_handshake2()
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_ft.c76 size_t ad_len[3] = { ETH_ALEN, auth_len, sizeof(type) }; in wpa_ft_rrb_decrypt() local
104 if (aes_siv_decrypt(key, key_len, enc, enc_len, 3, ad, ad_len, in wpa_ft_rrb_decrypt()
113 if (aes_siv_decrypt(key, key_len, enc, enc_len, 3, ad, ad_len, in wpa_ft_rrb_decrypt()
479 size_t ad_len[3] = { ETH_ALEN, auth_len, sizeof(type) }; in wpa_ft_rrb_encrypt() local
492 3, ad, ad_len, enc) < 0) { in wpa_ft_rrb_encrypt()
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc3512 size_t ad_len);