boringssl/ssl
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
..
pqueue Fix memory leak in pqueue_test. 2015-02-11 23:18:45 +00:00
test Tidy up state machine coverage tests. 2015-05-20 21:12:58 +00:00
CMakeLists.txt Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
d1_both.c Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
d1_clnt.c Never resume sessions on renegotiations. 2015-05-14 22:53:21 +00:00
d1_lib.c Remove OPENSSL_timeval. 2015-05-08 18:03:07 +00:00
d1_meth.c Promote all dtls1_ctrl hooks to functions. 2015-05-06 22:11:05 +00:00
d1_pkt.c Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
d1_srtp.c Fix STACK_OF pointer style. 2015-05-06 22:55:16 +00:00
d1_srvr.c Never resume sessions on renegotiations. 2015-05-14 22:53:21 +00:00
internal.h Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
s3_both.c Remove redundant setup buffer calls. 2015-05-11 21:31:59 +00:00
s3_clnt.c Set minimum DH group size to 1024 bits. 2015-05-20 18:35:31 +00:00
s3_enc.c Remove unnecessary NULL checks, part 5. 2015-05-04 23:16:19 +00:00
s3_lib.c Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
s3_meth.c Promote all SSL callback ctrl hooks to proper functions. 2015-05-06 22:10:47 +00:00
s3_pkt.c Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
s3_srvr.c Never resume sessions on renegotiations. 2015-05-14 22:53:21 +00:00
ssl_aead_ctx.c Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
ssl_algs.c Rename ssl_locl.h to internal.h 2015-04-10 22:14:09 +00:00
ssl_asn1.c Remove unnecessary NULL checks, part 5. 2015-05-04 23:16:19 +00:00
ssl_cert.c Remove remaining calls to the old lock functions. 2015-05-20 19:18:13 +00:00
ssl_cipher.c Remove dead field from CIPHER_ORDER. 2015-05-06 22:36:31 +00:00
ssl_lib.c Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
ssl_rsa.c Switch EVP_PKEY_dup calls to EVP_PKEY_up_ref. 2015-05-06 22:57:09 +00:00
ssl_sess.c Remove remaining calls to the old lock functions. 2015-05-20 19:18:13 +00:00
ssl_stat.c Rename ssl_locl.h to internal.h 2015-04-10 22:14:09 +00:00
ssl_test.cc Revert "Temporarily break a handful of tests." 2015-05-04 20:21:32 -04:00
ssl_txt.c Rename ssl_locl.h to internal.h 2015-04-10 22:14:09 +00:00
t1_enc.c Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
t1_lib.c Factor SSL_AEAD_CTX into a dedicated type. 2015-05-21 17:59:15 +00:00
t1_reneg.c Include-what-you-use ssl/internal.h. 2015-04-10 22:15:02 +00:00