2 # Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the Apache License 2.0 (the "License"). You may not use
5 # this file except in compliance with the License. You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
10 ## SSL test configurations
14 use OpenSSL::Test::Utils;
20 name => "disable-encrypt-then-mac-server-sha",
22 "Options" => "-EncryptThenMac",
25 "CipherString" => "AES128-SHA",
26 "MaxProtocol" => "TLSv1.2"
29 "ExpectedResult" => "Success",
33 name => "disable-encrypt-then-mac-client-sha",
37 "CipherString" => "AES128-SHA",
38 "Options" => "-EncryptThenMac",
39 "MaxProtocol" => "TLSv1.2"
42 "ExpectedResult" => "Success",
46 name => "disable-encrypt-then-mac-both-sha",
48 "Options" => "-EncryptThenMac",
51 "CipherString" => "AES128-SHA",
52 "Options" => "-EncryptThenMac",
53 "MaxProtocol" => "TLSv1.2"
56 "ExpectedResult" => "Success",
63 name => "disable-encrypt-then-mac-server-sha2",
65 "Options" => "-EncryptThenMac",
68 "CipherString" => "AES128-SHA256",
69 "MaxProtocol" => "TLSv1.2"
72 "ExpectedResult" => "Success",
76 name => "disable-encrypt-then-mac-client-sha2",
80 "CipherString" => "AES128-SHA256",
81 "Options" => "-EncryptThenMac",
82 "MaxProtocol" => "TLSv1.2"
85 "ExpectedResult" => "Success",
89 name => "disable-encrypt-then-mac-both-sha2",
91 "Options" => "-EncryptThenMac",
94 "CipherString" => "AES128-SHA256",
95 "Options" => "-EncryptThenMac",
96 "MaxProtocol" => "TLSv1.2"
99 "ExpectedResult" => "Success",
106 name => "disable-encrypt-then-mac-server-sha-tls1",
108 "CipherString" => 'DEFAULT:@SECLEVEL=0',
109 "Options" => "-EncryptThenMac",
112 "CipherString" => 'AES128-SHA@SECLEVEL=0',
113 "MinProtocol" => "TLSv1",
114 "MaxProtocol" => "TLSv1"
117 "ExpectedResult" => "Success",
121 name => "disable-encrypt-then-mac-client-sha-tls1",
123 "CipherString" => 'DEFAULT:@SECLEVEL=0',
126 "CipherString" => 'AES128-SHA@SECLEVEL=0',
127 "Options" => "-EncryptThenMac",
128 "MinProtocol" => "TLSv1",
129 "MaxProtocol" => "TLSv1"
132 "ExpectedResult" => "Success",
136 name => "disable-encrypt-then-mac-both-sha-tls1",
138 "CipherString" => 'DEFAULT:@SECLEVEL=0',
139 "Options" => "-EncryptThenMac",
142 "CipherString" => 'AES128-SHA@SECLEVEL=0',
143 "Options" => "-EncryptThenMac",
144 "MinProtocol" => "TLSv1",
145 "MaxProtocol" => "TLSv1"
148 "ExpectedResult" => "Success",
154 push @tests, @tests_tls1_2 unless disabled("tls1_2");
155 push @tests, @tests_tls1 unless disabled("tls1") || $fips_mode;