boringssl/crypto/err
David Benjamin 31a07798a5 Factor SSL_AEAD_CTX into a dedicated type.
tls1_enc is now SSL_AEAD_CTX_{open,seal}. This starts tidying up a bit
of the record-layer logic. This removes rr->input, as encrypting and
decrypting records no longer refers to various globals. It also removes
wrec altogether. SSL3_RECORD is now only used to maintain state about
the current incoming record. Outgoing records go straight to the write
buffer.

This also removes the outgoing alignment memcpy and simply calls
SSL_AEAD_CTX_seal with the parameters as appropriate. From bssl speed
tests, this seems to be faster on non-ARM and a bit of a wash on ARM.

Later it may be worth recasting these open/seal functions to write into
a CBB (tweaked so it can be malloc-averse), but for now they take an
out/out_len/max_out trio like their EVP_AEAD counterparts.

BUG=468889

Change-Id: Ie9266a818cc053f695d35ef611fd74c5d4def6c3
Reviewed-on: https://boringssl-review.googlesource.com/4792
Reviewed-by: Adam Langley <agl@google.com>
2015-05-21 17:59:15 +00:00
..
asn1.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
bio.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
bn.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
buf.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
cipher.errordata Add AEADs for AES-CTR with HMAC-SHA256. 2015-03-18 21:16:55 +00:00
CMakeLists.txt Remove the implementation abstraction from ERR. 2015-04-08 16:20:07 -07:00
conf.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
crypto.errordata Remove the ability to set custom ex_data implementations. 2015-04-15 23:23:50 +00:00
dh.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
digest.errordata Precompute sorted array for error strings. 2015-02-09 17:35:31 -08:00
dsa.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
ec.errordata Support arbitrary elliptic curve groups. 2015-05-15 00:59:37 +00:00
ecdh.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
ecdsa.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
engine.errordata Precompute sorted array for error strings. 2015-02-09 17:35:31 -08:00
err_data_generate.go Generate error data at build time. 2015-03-06 18:59:25 +00:00
err_test.cc Convert err_test to C++. 2015-04-01 19:59:44 +00:00
err.c Define compatibility function |ERR_remove_state|. 2015-05-12 19:06:18 +00:00
evp.errordata Add DSA support to EVP. 2015-04-06 16:58:45 -07:00
hkdf.errordata Precompute sorted array for error strings. 2015-02-09 17:35:31 -08:00
obj.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
pem.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
pkcs8.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
rsa.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
ssl.errordata Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
x509.errordata Add functions to parse and generate PKCS#7 files with CRLs. 2015-02-27 19:48:19 +00:00
x509v3.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00