boringssl/crypto/cipher
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
..
test Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aead_test.c Add tests for padding variations. 2015-01-14 21:09:16 +00:00
aead.c AEAD interface. 2014-06-20 13:17:34 -07:00
cipher_error.c Implement SSLv3 ciphers with stateful AEADs. 2015-01-14 20:55:58 +00:00
cipher_test.c Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
cipher.c Don't include strings.h because of Windows. 2014-09-29 17:57:38 -07:00
CMakeLists.txt Implement SSLv3 ciphers with stateful AEADs. 2015-01-14 20:55:58 +00:00
derive_key.c Inital import. 2014-06-20 13:17:32 -07:00
e_aes.c s/comparision/comparison/. 2015-01-06 10:49:48 -08:00
e_chacha20poly1305.c Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
e_des.c Inital import. 2014-06-20 13:17:32 -07:00
e_null.c Inital import. 2014-06-20 13:17:32 -07:00
e_rc2.c Shush some dead assignments. 2014-11-06 01:34:33 +00:00
e_rc4.c Implement all TLS ciphers with stateful AEADs. 2015-01-14 20:30:26 +00:00
e_ssl3.c Implement SSLv3 ciphers with stateful AEADs. 2015-01-14 20:55:58 +00:00
e_tls.c Introduce HMAC_CTX_copy_ex and deprecate HMAC_CTX_copy. 2015-01-14 20:35:47 +00:00
internal.h Drop SSLv3 parts of crypto/cipher/tls_cbc.c. 2015-01-14 20:33:41 +00:00
tls_cbc.c Drop SSLv3 parts of crypto/cipher/tls_cbc.c. 2015-01-14 20:33:41 +00:00