boringssl/ssl/test/runner
David Benjamin 61672818ef Check for buffered handshake messages on cipher change in DTLS.
This is the equivalent of FragmentAcrossChangeCipherSuite for DTLS. It
is possible for us to, while receiving pre-CCS handshake messages, to
buffer up a message with sequence number meant for a post-CCS Finished.
When we then get to the new epoch and attempt to read the Finished, we
will process the buffered Finished although it was sent with the wrong
encryption.

Move ssl_set_{read,write}_state to SSL_PROTOCOL_METHOD hooks as this is
a property of the transport. Notably, read_state may fail. In DTLS
check the handshake buffer size. We could place this check in
read_change_cipher_spec, but TLS 1.3 has no ChangeCipherSpec message, so
we will need to implement this at the cipher change point anyway. (For
now, there is only an assert on the TLS side. This will be replaced with
a proper check in TLS 1.3.)

Change-Id: Ia52b0b81e7db53e9ed2d4f6d334a1cce13e93297
Reviewed-on: https://boringssl-review.googlesource.com/8790
Reviewed-by: Steven Valdez <svaldez@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2016-07-16 08:25:02 +00:00
..
curve25519 Bundle a copy of golang.org/x/crypto/curve25519 for testing. 2015-12-22 17:47:53 +00:00
newhope Avoid overflow in newhope.go. 2016-06-08 20:10:48 +00:00
poly1305 Switch the bundled poly1305 to relative imports. 2015-12-22 17:47:28 +00:00
alert.go Implement basic TLS 1.3 client handshake in Go. 2016-07-07 23:28:27 +00:00
cert.pem Adding RSA-PSS signature algorithms. 2016-07-12 19:10:51 +00:00
chacha20_poly1305_test.go Add ISC license to Go files that were missing a license. 2016-05-20 18:11:38 +00:00
chacha20_poly1305.go Add ISC license to Go files that were missing a license. 2016-05-20 18:11:38 +00:00
channel_id_key.pem Add basic TLS Channel ID tests. 2014-08-26 17:40:36 +00:00
cipher_suites.go Implement basic TLS 1.3 client handshake in Go. 2016-07-07 23:28:27 +00:00
common.go Check for buffered handshake messages on cipher change in DTLS. 2016-07-16 08:25:02 +00:00
conn.go Implement exporters for TLS 1.3 in Go. 2016-07-13 22:18:03 +00:00
deterministic.go Add a deterministic PRNG for runner. 2016-06-08 20:15:48 +00:00
dtls.go Check for buffered handshake messages on cipher change in DTLS. 2016-07-16 08:25:02 +00:00
ecdsa_p256_cert.pem Match ECDSA curve with hash in tests. 2016-07-12 18:26:14 +00:00
ecdsa_p256_key.pem Match ECDSA curve with hash in tests. 2016-07-12 18:26:14 +00:00
ecdsa_p384_cert.pem Match ECDSA curve with hash in tests. 2016-07-12 18:26:14 +00:00
ecdsa_p384_key.pem Match ECDSA curve with hash in tests. 2016-07-12 18:26:14 +00:00
ecdsa_p521_cert.pem Match ECDSA curve with hash in tests. 2016-07-12 18:26:14 +00:00
ecdsa_p521_key.pem Match ECDSA curve with hash in tests. 2016-07-12 18:26:14 +00:00
handshake_client.go Check for buffered handshake messages on cipher change in DTLS. 2016-07-16 08:25:02 +00:00
handshake_messages.go Enforce in Go that all ServerHello extensions are known. 2016-07-15 23:14:36 +00:00
handshake_server.go Check for buffered handshake messages on cipher change in DTLS. 2016-07-16 08:25:02 +00:00
hkdf_test.go Add Go HKDF implementation with test. 2016-07-06 22:25:43 +00:00
hkdf.go Add Go HKDF implementation with test. 2016-07-06 22:25:43 +00:00
key_agreement.go Generalize invalid signature tests and run at all versions. 2016-07-14 16:07:56 +00:00
key.pem Adding RSA-PSS signature algorithms. 2016-07-12 19:10:51 +00:00
packet_adapter.go Add tests for bad ChangeCipherSpecs. 2015-12-16 17:39:43 +00:00
prf.go Don't crash on EnableAllCiphers in deriveTrafficAEAD. 2016-07-13 21:24:05 +00:00
recordingconn.go Add ISC license to Go files that were missing a license. 2016-05-20 18:11:38 +00:00
rsa_1024_cert.pem Account for key size when selecting RSA-PSS. 2016-07-13 15:32:05 +00:00
rsa_1024_key.pem Account for key size when selecting RSA-PSS. 2016-07-13 15:32:05 +00:00
runner_test.go Add ISC license to Go files that were missing a license. 2016-05-20 18:11:38 +00:00
runner.go Check for buffered handshake messages on cipher change in DTLS. 2016-07-16 08:25:02 +00:00
sign.go Generalize invalid signature tests and run at all versions. 2016-07-14 16:07:56 +00:00
test_output.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
ticket.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
tls.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00