boringssl/crypto/cipher/test
David Benjamin 0ebfac554e Add tests for padding variations.
Test that SSLv3 accepts arbitrary padding bytes (hello, POODLE) and rejects
non-minimal padding, while TLS accepts non-minimal padding but rejects
arbitrary padding bytes.

Also test what happens when the MAC is correct, but there is no padding. This
is the case that triggers a failing padding_ok check after the MAC check
on padding_len = 0 passes.

Change-Id: Ia1444c526437899fc57ceafcbcef9c8f5cb9a6c5
Reviewed-on: https://boringssl-review.googlesource.com/2702
Reviewed-by: Adam Langley <agl@google.com>
2015-01-14 21:09:16 +00:00
..
aes_128_cbc_sha1_ssl3_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aes_128_cbc_sha1_tls_implicit_iv_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aes_128_cbc_sha1_tls_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aes_128_cbc_sha256_tls_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aes_128_gcm_tests.txt Implement all TLS ciphers with stateful AEADs. 2015-01-14 20:30:26 +00:00
aes_128_key_wrap_tests.txt Implement all TLS ciphers with stateful AEADs. 2015-01-14 20:30:26 +00:00
aes_256_cbc_sha1_ssl3_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aes_256_cbc_sha1_tls_implicit_iv_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aes_256_cbc_sha1_tls_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aes_256_cbc_sha256_tls_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aes_256_cbc_sha384_tls_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aes_256_gcm_tests.txt Implement all TLS ciphers with stateful AEADs. 2015-01-14 20:30:26 +00:00
aes_256_key_wrap_tests.txt Implement all TLS ciphers with stateful AEADs. 2015-01-14 20:30:26 +00:00
chacha20_poly1305_tests.txt Implement all TLS ciphers with stateful AEADs. 2015-01-14 20:30:26 +00:00
cipher_test.txt Implement all TLS ciphers with stateful AEADs. 2015-01-14 20:30:26 +00:00
des_ede3_cbc_sha1_ssl3_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
des_ede3_cbc_sha1_tls_implicit_iv_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
des_ede3_cbc_sha1_tls_tests.txt Add tests for padding variations. 2015-01-14 21:09:16 +00:00
make_all_legacy_aead_tests.sh Implement SSLv3 ciphers with stateful AEADs. 2015-01-14 20:55:58 +00:00
make_legacy_aead_tests.go Add tests for padding variations. 2015-01-14 21:09:16 +00:00
rc4_md5_ssl3_tests.txt Implement SSLv3 ciphers with stateful AEADs. 2015-01-14 20:55:58 +00:00
rc4_md5_tls_tests.txt Implement all TLS ciphers with stateful AEADs. 2015-01-14 20:30:26 +00:00
rc4_sha1_ssl3_tests.txt Implement SSLv3 ciphers with stateful AEADs. 2015-01-14 20:55:58 +00:00
rc4_sha1_tls_tests.txt Implement all TLS ciphers with stateful AEADs. 2015-01-14 20:30:26 +00:00