Test mac-then-encrypt
authorEmilia Kasper <emilia@openssl.org>
Fri, 25 Nov 2016 16:05:30 +0000 (17:05 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 5 Oct 2017 07:29:28 +0000 (09:29 +0200)
commitc5e8bd1d8aa9dafdb515b6c055f1ac95c12f138d
tree12b0a5f55eadf43c4868cd090f073b312da86317
parent619c589bdb2fc52e4f180db548222e2b7ab169d8
Test mac-then-encrypt

Verify that the encrypt-then-mac negotiation is handled
correctly. Additionally, when compiled with no-asm, this test ensures
coverage for the constant-time MAC copying code in
ssl3_cbc_copy_mac. The proxy-based CBC padding test covers that as
well but it's nevertheless better to have an explicit handshake test
for mac-then-encrypt.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit b3618f44a7b8504bfb0a64e8a33e6b8e56d4d516)
CHANGES
ssl/ssl_conf.c
test/recipes/80-test_ssl_new.t
test/ssl-tests/19-mac-then-encrypt.conf [new file with mode: 0644]
test/ssl-tests/19-mac-then-encrypt.conf.in [new file with mode: 0644]