boringssl/crypto/fipsmodule/cipher
Adam Langley 35fb591f24 Flatten EVP_AEAD_CTX
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>
2018-10-22 23:12:57 +00:00
..
aead.c Run the comment converter on libcrypto. 2017-08-18 21:49:04 +00:00
cipher.c Add a Wycheproof driver for AES-CBC. 2018-05-02 19:41:48 +00:00
e_aes.c Flatten EVP_AEAD_CTX 2018-10-22 23:12:57 +00:00
e_des.c
internal.h Trim 88 bytes from each AES-GCM EVP_AEAD. 2018-09-17 22:05:51 +00:00