Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/cipher/
De_chacha20poly1305.c89 size_t ad_len, const uint8_t *ciphertext,
99 size_t ad_len, const uint8_t *ciphertext, in aead_poly1305() argument
107 update(&ctx, ad, ad_len, ciphertext, ciphertext_len); in aead_poly1305()
115 size_t ad_len) { in seal_impl() argument
143 aead_poly1305(poly1305_update, tag, c20_ctx, nonce, ad, ad_len, out, in_len); in seal_impl()
154 size_t ad_len) { in open_impl() argument
177 aead_poly1305(poly1305_update, tag, c20_ctx, nonce, ad, ad_len, in, in open_impl()
200 size_t ad_len, const uint8_t *ciphertext, in poly1305_update() argument
202 poly1305_update_padded_16(ctx, ad, ad_len); in poly1305_update()
204 poly1305_update_length(ctx, ad_len); in poly1305_update()
[all …]
De_ssl3.c36 const uint8_t *ad, size_t ad_len, const uint8_t *in, in ssl3_mac() argument
55 !EVP_DigestUpdate(&md_ctx, ad, ad_len) || in ssl3_mac()
130 const uint8_t *ad, size_t ad_len) { in aead_ssl3_seal() argument
157 if (ad_len != 11 - 2 /* length bytes */) { in aead_ssl3_seal()
166 if (!ssl3_mac(ssl3_ctx, mac, &mac_len, ad, ad_len, in, in_len)) { in aead_ssl3_seal()
215 const uint8_t *ad, size_t ad_len) { in aead_ssl3_open() argument
242 if (ad_len != 11 - 2 /* length bytes */) { in aead_ssl3_open()
288 if (!ssl3_mac(ssl3_ctx, mac, NULL, ad, ad_len, out, data_len)) { in aead_ssl3_open()
Daead.c103 const uint8_t *ad, size_t ad_len) { in EVP_AEAD_CTX_seal() argument
117 in_len, ad, ad_len)) { in EVP_AEAD_CTX_seal()
132 const uint8_t *ad, size_t ad_len) { in EVP_AEAD_CTX_open() argument
139 in_len, ad, ad_len)) { in EVP_AEAD_CTX_open()
De_tls.c107 const uint8_t *ad, size_t ad_len) { in aead_tls_seal() argument
134 if (ad_len != 13 - 2 /* length bytes */) { in aead_tls_seal()
150 !HMAC_Update(&tls_ctx->hmac_ctx, ad, ad_len) || in aead_tls_seal()
208 const uint8_t *ad, size_t ad_len) { in aead_tls_open() argument
234 if (ad_len != 13 - 2 /* length bytes */) { in aead_tls_open()
298 ad_len += 2; in aead_tls_open()
324 !HMAC_Update(&tls_ctx->hmac_ctx, ad_fixed, ad_len) || in aead_tls_open()
Dinternal.h91 size_t ad_len);
96 size_t ad_len);
De_aes.c1104 const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_seal() argument
1123 if (ad_len > 0 && !CRYPTO_gcm128_aad(&gcm, ad, ad_len)) { in aead_aes_gcm_seal()
1147 const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_open() argument
1170 if (!CRYPTO_gcm128_aad(&gcm, ad, ad_len)) { in aead_aes_gcm_open()
1284 const uint8_t *ad, size_t ad_len) { in aead_aes_key_wrap_seal() argument
1295 if (ad_len != 0) { in aead_aes_key_wrap_seal()
1373 const uint8_t *ad, size_t ad_len) { in aead_aes_key_wrap_open() argument
1384 if (ad_len != 0) { in aead_aes_key_wrap_open()
1591 const uint8_t *ad, size_t ad_len, in hmac_calculate() argument
1596 hmac_update_uint64(&sha256, ad_len); in hmac_calculate()
[all …]
/external/boringssl/src/tool/
Dspeed.cc176 size_t chunk_len, size_t ad_len) { in SpeedAEADChunk() argument
190 std::unique_ptr<uint8_t[]> ad(new uint8_t[ad_len]); in SpeedAEADChunk()
191 memset(ad.get(), 0, ad_len); in SpeedAEADChunk()
207 if (!TimeFunction(&results, [chunk_len, overhead_len, nonce_len, ad_len, in, in SpeedAEADChunk()
213 nonce_len, in, chunk_len, ad.get(), ad_len); in SpeedAEADChunk()
228 size_t ad_len, const std::string &selected) { in SpeedAEAD() argument
233 return SpeedAEADChunk(aead, name + " (16 bytes)", 16, ad_len) && in SpeedAEAD()
234 SpeedAEADChunk(aead, name + " (1350 bytes)", 1350, ad_len) && in SpeedAEAD()
235 SpeedAEADChunk(aead, name + " (8192 bytes)", 8192, ad_len); in SpeedAEAD()
/external/boringssl/src/ssl/
Dssl_aead_ctx.c176 size_t ad_len = ssl_aead_ctx_get_ad(aead, ad, type, wire_version, seqnum, in SSL_AEAD_CTX_open() local
218 in, in_len, ad, ad_len); in SSL_AEAD_CTX_open()
237 size_t ad_len = ssl_aead_ctx_get_ad(aead, ad, type, wire_version, seqnum, in SSL_AEAD_CTX_seal() local
295 in, in_len, ad, ad_len)) { in SSL_AEAD_CTX_seal()
/external/boringssl/src/include/openssl/
Daead.h290 const uint8_t *ad, size_t ad_len);
315 const uint8_t *ad, size_t ad_len);
/external/wpa_supplicant_8/src/crypto/
Dtls_internal.c455 size_t res_len, ad_len; in tls_connection_handshake2() local
465 &res_len, &ad, &ad_len, need_more_data); in tls_connection_handshake2()
476 *appl_data = wpabuf_alloc_ext_data(ad, ad_len); in tls_connection_handshake2()
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp5031 const uint8_t *ad, size_t ad_len);