35fb591f24
An EVP_AEAD_CTX used to be a small struct that contained a pointer to an AEAD-specific context. That involved heap allocating the AEAD-specific context, which was a problem for users who wanted to setup and discard these objects quickly. Instead this change makes EVP_AEAD_CTX large enough to contain the AEAD-specific context inside itself. The dominant AEAD is AES-GCM, and that's also the largest. So, in practice, this shouldn't waste too much memory. Change-Id: I795cb37afae9df1424f882adaf514a222e040c80 Reviewed-on: https://boringssl-review.googlesource.com/c/32506 Commit-Queue: Adam Langley <agl@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> Reviewed-by: David Benjamin <davidben@google.com> |
||
---|---|---|
.. | ||
asm | ||
test | ||
aead_test.cc | ||
cipher_extra.c | ||
cipher_test.cc | ||
derive_key.c | ||
e_aesccm.c | ||
e_aesctrhmac.c | ||
e_aesgcmsiv.c | ||
e_chacha20poly1305.c | ||
e_null.c | ||
e_rc2.c | ||
e_rc4.c | ||
e_tls.c | ||
internal.h | ||
tls_cbc.c |