boringssl/crypto/cipher_extra/test
David Benjamin 42d723f634 Test CBC padding more aggressively.
tls_cbc.c is concerned with the variation in where the padding+mac may
end, counted in blocks. Hash blocks are larger than block cipher blocks,
and the hash itself appends some padding. Thus maximal padding off a
64-hash.Size() bytes may not fully stress things.

Just run all inputs modulo the hash block size, so we don't have to
think very hard about the "most difficult" input.

Change-Id: I8da1427dfff855931c14a9135c22afbff4f367c0
Reviewed-on: https://boringssl-review.googlesource.com/c/32724
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2018-10-30 20:53:00 +00:00
..
nist_cavp Move cipher/ into crypto/fipsmodule/ 2017-05-05 22:39:40 +00:00
aes_128_cbc_sha1_tls_implicit_iv_tests.txt Test CBC padding more aggressively. 2018-10-30 20:53:00 +00:00
aes_128_cbc_sha1_tls_tests.txt Test CBC padding more aggressively. 2018-10-30 20:53:00 +00:00
aes_128_cbc_sha256_tls_tests.txt Test CBC padding more aggressively. 2018-10-30 20:53:00 +00:00
aes_128_ccm_bluetooth_8_tests.txt Add M=8 L=2 AES-128-CCM as well. 2018-03-02 18:45:06 +00:00
aes_128_ccm_bluetooth_tests.txt Add M=8 L=2 AES-128-CCM as well. 2018-03-02 18:45:06 +00:00
aes_128_ctr_hmac_sha256.txt Move cipher/ into crypto/fipsmodule/ 2017-05-05 22:39:40 +00:00
aes_128_gcm_siv_tests.txt Move cipher/ into crypto/fipsmodule/ 2017-05-05 22:39:40 +00:00
aes_128_gcm_tests.txt Move cipher/ into crypto/fipsmodule/ 2017-05-05 22:39:40 +00:00
aes_256_cbc_sha1_tls_implicit_iv_tests.txt Test CBC padding more aggressively. 2018-10-30 20:53:00 +00:00
aes_256_cbc_sha1_tls_tests.txt Test CBC padding more aggressively. 2018-10-30 20:53:00 +00:00
aes_256_cbc_sha256_tls_tests.txt Test CBC padding more aggressively. 2018-10-30 20:53:00 +00:00
aes_256_cbc_sha384_tls_tests.txt Test CBC padding more aggressively. 2018-10-30 20:53:00 +00:00
aes_256_ctr_hmac_sha256.txt Move cipher/ into crypto/fipsmodule/ 2017-05-05 22:39:40 +00:00
aes_256_gcm_siv_tests.txt Add AES-GCM-SIV tests for counter wrapping. 2017-05-15 16:08:46 +00:00
aes_256_gcm_tests.txt Move cipher/ into crypto/fipsmodule/ 2017-05-05 22:39:40 +00:00
chacha20_poly1305_tests.txt Move cipher/ into crypto/fipsmodule/ 2017-05-05 22:39:40 +00:00
cipher_tests.txt Add AES-192-OFB. 2018-06-18 21:58:46 +00:00
des_ede3_cbc_sha1_tls_implicit_iv_tests.txt Test CBC padding more aggressively. 2018-10-30 20:53:00 +00:00
des_ede3_cbc_sha1_tls_tests.txt Test CBC padding more aggressively. 2018-10-30 20:53:00 +00:00
make_all_legacy_aead_tests.sh Remove SSL 3.0 implementation. 2018-06-28 16:54:58 +00:00
make_legacy_aead_tests.go Test CBC padding more aggressively. 2018-10-30 20:53:00 +00:00
xchacha20_poly1305_tests.txt Add XChaCha20-Poly1305 AEAD. 2018-08-09 18:49:09 +00:00