Home
last modified time | relevance | path

Searched refs:extra_in_len (Results 1 – 12 of 12) sorted by relevance

/external/boringssl/src/crypto/cipher_extra/
De_chacha20poly1305.c190 size_t extra_in_len, const uint8_t *ad, size_t ad_len, size_t tag_len) { in chacha20_poly1305_seal_scatter() argument
191 if (extra_in_len + tag_len < tag_len) { in chacha20_poly1305_seal_scatter()
195 if (max_out_tag_len < tag_len + extra_in_len) { in chacha20_poly1305_seal_scatter()
223 if (extra_in_len) { in chacha20_poly1305_seal_scatter()
229 for (size_t done = 0; done < extra_in_len; block_counter++) { in chacha20_poly1305_seal_scatter()
233 for (size_t i = offset; i < sizeof(block) && done < extra_in_len; in chacha20_poly1305_seal_scatter()
247 data.in.extra_ciphertext_len = extra_in_len; in chacha20_poly1305_seal_scatter()
252 extra_in_len); in chacha20_poly1305_seal_scatter()
255 OPENSSL_memcpy(out_tag + extra_in_len, data.out.tag, tag_len); in chacha20_poly1305_seal_scatter()
256 *out_tag_len = extra_in_len + tag_len; in chacha20_poly1305_seal_scatter()
[all …]
De_tls.c104 const size_t extra_in_len) { in aead_tls_tag_len() argument
105 assert(extra_in_len == 0); in aead_tls_tag_len()
128 const size_t extra_in_len, const uint8_t *ad, in aead_tls_seal_scatter() argument
144 if (max_out_tag_len < aead_tls_tag_len(ctx, in_len, extra_in_len)) { in aead_tls_seal_scatter()
236 assert(tag_len == aead_tls_tag_len(ctx, in_len, extra_in_len)); in aead_tls_seal_scatter()
De_aesccm.c85 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in aead_aes_ccm_seal_scatter() argument
De_aesctrhmac.c180 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in aead_aes_ctr_hmac_sha256_seal_scatter() argument
De_aesgcmsiv.c345 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_siv_asm_seal_scatter() argument
729 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_siv_seal_scatter() argument
/external/boringssl/src/crypto/fipsmodule/cipher/
Daead.c154 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in EVP_AEAD_CTX_seal_scatter() argument
163 if (!ctx->aead->seal_scatter_supports_extra_in && extra_in_len) { in EVP_AEAD_CTX_seal_scatter()
170 extra_in_len, ad, ad_len)) { in EVP_AEAD_CTX_seal_scatter()
269 const size_t in_len, const size_t extra_in_len) { in EVP_AEAD_CTX_tag_len() argument
270 assert(ctx->aead->seal_scatter_supports_extra_in || !extra_in_len); in EVP_AEAD_CTX_tag_len()
273 *out_tag_len = ctx->aead->tag_len(ctx, in_len, extra_in_len); in EVP_AEAD_CTX_tag_len()
277 if (extra_in_len + ctx->tag_len < extra_in_len) { in EVP_AEAD_CTX_tag_len()
282 *out_tag_len = extra_in_len + ctx->tag_len; in EVP_AEAD_CTX_tag_len()
De_aes.c898 size_t extra_in_len, in aead_aes_gcm_seal_scatter() argument
902 if (extra_in_len + ctx->tag_len < ctx->tag_len) { in aead_aes_gcm_seal_scatter()
906 if (max_out_tag_len < extra_in_len + ctx->tag_len) { in aead_aes_gcm_seal_scatter()
937 if (extra_in_len) { in aead_aes_gcm_seal_scatter()
940 extra_in_len, gcm_ctx->ctr)) { in aead_aes_gcm_seal_scatter()
944 if (!CRYPTO_gcm128_encrypt(&gcm, key, extra_in, out_tag, extra_in_len)) { in aead_aes_gcm_seal_scatter()
950 CRYPTO_gcm128_tag(&gcm, out_tag + extra_in_len, ctx->tag_len); in aead_aes_gcm_seal_scatter()
951 *out_tag_len = ctx->tag_len + extra_in_len; in aead_aes_gcm_seal_scatter()
1070 size_t extra_in_len, const uint8_t *ad, size_t ad_len) { in aead_aes_gcm_tls12_seal_scatter() argument
1094 in_len, extra_in, extra_in_len, ad, ad_len); in aead_aes_gcm_tls12_seal_scatter()
[all …]
Dinternal.h101 size_t extra_in_len, const uint8_t *ad, size_t ad_len);
112 size_t extra_in_len);
/external/boringssl/src/ssl/
Dssl_aead_ctx.cc190 const size_t extra_in_len) const { in SuffixLen()
192 *out_suffix_len = extra_in_len; in SuffixLen()
196 extra_in_len); in SuffixLen()
200 const size_t extra_in_len) const { in CiphertextLen()
202 if (!SuffixLen(&len, in_len, extra_in_len)) { in CiphertextLen()
320 size_t extra_in_len) { in SealScatter() argument
323 if (!SuffixLen(&suffix_len, in_len, extra_in_len)) { in SealScatter()
337 OPENSSL_memmove(out_suffix, extra_in, extra_in_len); in SealScatter()
394 nonce_len, in, in_len, extra_in, extra_in_len, ad.data(), ad.size()); in SealScatter()
Dtls_record.cc381 size_t extra_in_len = 0; in do_seal_record() local
386 extra_in_len = 1; in do_seal_record()
390 if (!aead->SuffixLen(&suffix_len, in_len, extra_in_len) || in do_seal_record()
391 !aead->CiphertextLen(&ciphertext_len, in_len, extra_in_len)) { in do_seal_record()
400 if (extra_in_len) { in do_seal_record()
416 header, in, in_len, extra_in, extra_in_len) || in do_seal_record()
444 size_t extra_in_len = 0; in tls_seal_scatter_suffix_len() local
448 extra_in_len = 1; in tls_seal_scatter_suffix_len()
457 return ssl->s3->aead_write_ctx->SuffixLen(out_suffix_len, in_len, extra_in_len); in tls_seal_scatter_suffix_len()
Dinternal.h704 size_t extra_in_len) const;
710 bool CiphertextLen(size_t *out_len, size_t in_len, size_t extra_in_len) const;
746 size_t extra_in_len);
/external/boringssl/src/include/openssl/
Daead.h324 const uint8_t *extra_in, size_t extra_in_len,
422 const size_t extra_in_len);