boringssl/crypto
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 aesni-x86_64.pl: make ECB subroutine Windows ABI compliant (RT 3552). 2014-11-10 13:45:33 -08:00
asn1 Fix various certificate fingerprint issues. 2015-01-09 19:41:59 +00:00
base64 Don't use ssize_t in base64_test.c. 2014-10-01 01:07:28 +00:00
bio Rename hexdump to hexdump_write. 2015-01-06 00:26:53 +00:00
bn Fix for CVE-2014-3570. 2015-01-09 02:49:10 +00:00
buf Don't read past the end of the string in BUF_strndup. 2014-10-20 20:07:02 +00:00
bytestring Remove variable shadowing. 2014-12-09 21:32:49 +00:00
chacha Fix ARM build with OPENSSL_NO_ASM. 2014-09-03 19:23:25 +00:00
cipher Add tests for padding variations. 2015-01-14 21:09:16 +00:00
conf Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
des
dh Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
digest Add void in place of empty function arguments. 2015-01-06 00:27:07 +00:00
dsa Fix DER checks for DSA_check_signature and add tests. 2015-01-12 22:29:10 +00:00
ec Set output EC_KEY to NULL when d2i_ECPrivateKey() fails. 2015-01-06 00:55:19 +00:00
ecdh Use BN_bn2bin_padded rather than doing math to figure out leading zeros. 2014-11-10 23:04:52 +00:00
ecdsa Fix various certificate fingerprint issues. 2015-01-09 19:41:59 +00:00
engine Add generic OPERATION_NOT_SUPPORTED error code. 2014-10-09 23:55:39 +00:00
err Free more memory in cleanup functions. 2015-01-13 00:04:35 +00:00
evp Introduce HMAC_CTX_copy_ex and deprecate HMAC_CTX_copy. 2015-01-14 20:35:47 +00:00
hkdf Fix a compile error on Windows. 2015-01-06 19:46:52 +00:00
hmac Introduce HMAC_CTX_copy_ex and deprecate HMAC_CTX_copy. 2015-01-14 20:35:47 +00:00
lhash Fix NaCl build. 2014-10-02 22:45:22 +00:00
md4 Readd MD4. 2014-08-26 21:51:48 +00:00
md5 md5-x86_64.pl: work around warning. 2014-11-10 13:45:32 -08:00
modes x86[_64] assembly pack: add Silvermont performance data. 2014-11-10 13:45:32 -08:00
obj Renegerate OID outputs. 2014-12-04 22:13:50 +00:00
pem Consistently use RAND_bytes and check for failure. 2014-12-16 19:15:59 +00:00
perlasm perlasm/x86_64-xlate.pl: handle inter-bank movd. 2014-11-10 13:45:32 -08:00
pkcs8 Add void in place of empty function arguments. 2015-01-06 00:27:07 +00:00
poly1305 Fix ARM build with OPENSSL_NO_ASM. 2014-09-03 19:23:25 +00:00
rand Call RtlGenRandom directly in RAND_bytes. 2014-11-05 00:42:07 +00:00
rc4 Use OPENSSL_64_BIT in rc4.c. 2014-10-01 02:06:31 +00:00
rsa Consistently use RAND_bytes and check for failure. 2014-12-16 19:15:59 +00:00
sha x86[_64] assembly pack: add Silvermont performance data. 2014-11-10 13:45:32 -08:00
stack Mark all SSL_CIPHERs as const. 2014-08-18 17:55:05 +00:00
x509 Fix various certificate fingerprint issues. 2015-01-09 19:41:59 +00:00
x509v3 Fix a couple of minor compiler warnings. 2015-01-06 00:27:22 +00:00
arm_arch.h Add a control to disable the Poly1305 NEON code. 2014-07-31 22:42:15 +00:00
CMakeLists.txt Implement HKDF. 2014-12-18 20:13:06 +00:00
constant_time_test.c Update constant-time operations. 2014-11-10 13:48:30 -08:00
cpu-arm.c Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
cpu-intel.c Don't try to setup CPUID if NO_ASM. 2014-09-20 00:09:57 +00:00
cpu-x86_64-asm.pl
cpu-x86-asm.pl Use asm directives to protect OPENSSL_cleanse. 2014-07-31 18:49:22 +00:00
crypto_error.c
crypto_error.h
crypto.c Don't try to setup CPUID if NO_ASM. 2014-09-20 00:09:57 +00:00
directory_posix.c _POSIX_C_SOURCE needs to be set to a date, at least on FreeBSD. 2014-09-30 19:15:39 +00:00
directory_win.c
directory.h Add visibility rules. 2014-07-31 22:03:11 +00:00
ex_data_impl.c Free more memory in cleanup functions. 2015-01-13 00:04:35 +00:00
ex_data.c Don't compare signed vs. unsigned. 2014-10-01 02:17:38 +00:00
header_removed.h
internal.h Condition the use of UI64 on _MSC_VER. 2015-01-06 18:47:49 +00:00
mem.c Fix NaCl build. 2014-10-02 22:45:22 +00:00
thread.c Include Windows.h in some source files. 2014-08-18 11:39:09 -07:00
time_support.c Fix NaCl build. 2014-10-02 22:45:22 +00:00