boringssl/ssl
David Benjamin e95d20dcb8 Support EVP_AEAD in DTLS.
This CL removes the last of the EVP_CIPHER codepath in ssl/. The dead code is
intentionally not pruned for ease of review, except in DTLS-only code where
adding new logic to support both, only to remove half, would be cumbersome.

Fixes made:
- dtls1_retransmit_state is taught to retain aead_write_ctx rather than
  enc_write_ctx.
- d1_pkt.c reserves space for the variable-length nonce when echoed into the
  packet.
- dtls1_do_write sizes the MTU based on EVP_AEAD max overhead.
- tls1_change_cipher_state_cipher should not free AEAD write contexts in DTLS.
  This matches the (rather confused) ownership for the EVP_CIPHER contexts.
  I've added a TODO to resolve this craziness.

A follow-up CL will remove all the resultant dead code.

Change-Id: I644557f4db53bbfb182950823ab96d5e4c908866
Reviewed-on: https://boringssl-review.googlesource.com/2699
Reviewed-by: Adam Langley <agl@google.com>
2015-01-14 21:03:40 +00:00
..
pqueue Test insertion of duplicates in pqueue_test. 2014-11-06 01:46:57 +00:00
test Support EVP_AEAD in DTLS. 2015-01-14 21:03:40 +00:00
CMakeLists.txt Merge SSLv23_method and DTLS_ANY_VERSION. 2014-12-13 15:22:21 -08:00
d1_both.c Support EVP_AEAD in DTLS. 2015-01-14 21:03:40 +00:00
d1_clnt.c Reformatting of several DTLS source files. 2014-12-13 16:28:18 -08:00
d1_lib.c Support EVP_AEAD in DTLS. 2015-01-14 21:03:40 +00:00
d1_meth.c Implement SSL_clear with ssl_new and ssl_free. 2015-01-12 22:35:58 +00:00
d1_pkt.c Support EVP_AEAD in DTLS. 2015-01-14 21:03:40 +00:00
d1_srtp.c Reformat d1_{srtp|srvr}.c and s3_both.c 2014-12-15 18:42:07 -08:00
d1_srvr.c Support EVP_AEAD in DTLS. 2015-01-14 21:03:40 +00:00
s3_both.c Touch up ssl3_get_message. 2014-12-17 00:16:23 +00:00
s3_cbc.c Reformatting of s3_{cbc|clnt}.c 2014-12-17 19:06:57 -08:00
s3_clnt.c Treat handshake_failure in response to ClientHello special. 2015-01-06 18:31:49 +00:00
s3_enc.c Implement SSLv3 ciphers with stateful AEADs. 2015-01-14 20:55:58 +00:00
s3_lib.c Implement SSLv3 ciphers with stateful AEADs. 2015-01-14 20:55:58 +00:00
s3_meth.c Implement SSL_clear with ssl_new and ssl_free. 2015-01-12 22:35:58 +00:00
s3_pkt.c Reformat the rest of ssl/. 2014-12-18 17:43:03 -08:00
s3_srvr.c Reformat the rest of ssl/. 2014-12-18 17:43:03 -08:00
ssl_algs.c Reformat the rest of ssl/. 2014-12-18 17:43:03 -08:00
ssl_asn1.c Remove psk_identity_hint from SSL_SESSION. 2014-11-10 23:59:47 +00:00
ssl_cert.c Add (void) to some macros to satisfy compiler. 2015-01-12 23:46:03 +00:00
ssl_ciph.c Implement SSLv3 ciphers with stateful AEADs. 2015-01-14 20:55:58 +00:00
ssl_error.c Add the PRF to SSL3_ENC_METHOD. 2015-01-14 20:43:26 +00:00
ssl_lib.c Implement all TLS ciphers with stateful AEADs. 2015-01-14 20:30:26 +00:00
ssl_locl.h Implement SSLv3 ciphers with stateful AEADs. 2015-01-14 20:55:58 +00:00
ssl_rsa.c Reformat the rest of ssl/. 2014-12-18 17:43:03 -08:00
ssl_sess.c Add (void) to some macros to satisfy compiler. 2015-01-12 23:46:03 +00:00
ssl_stat.c Reformat the rest of ssl/. 2014-12-18 17:43:03 -08:00
ssl_test.c Merge SSLv23_method and DTLS_ANY_VERSION. 2014-12-13 15:22:21 -08:00
ssl_txt.c Reformat the rest of ssl/. 2014-12-18 17:43:03 -08:00
t1_enc.c Support EVP_AEAD in DTLS. 2015-01-14 21:03:40 +00:00
t1_lib.c Add the PRF to SSL3_ENC_METHOD. 2015-01-14 20:43:26 +00:00
t1_reneg.c Reformat the rest of ssl/. 2014-12-18 17:43:03 -08:00