Test mac-then-encrypt
[oweals/openssl.git] / test / ssl-tests / 19-mac-then-encrypt.conf
1 # Generated with generate_ssl_tests.pl
2
3 num_tests = 6
4
5 test-0 = 0-disable-encrypt-then-mac-server-sha
6 test-1 = 1-disable-encrypt-then-mac-client-sha
7 test-2 = 2-disable-encrypt-then-mac-both-sha
8 test-3 = 3-disable-encrypt-then-mac-server-sha2
9 test-4 = 4-disable-encrypt-then-mac-client-sha2
10 test-5 = 5-disable-encrypt-then-mac-both-sha2
11 # ===========================================================
12
13 [0-disable-encrypt-then-mac-server-sha]
14 ssl_conf = 0-disable-encrypt-then-mac-server-sha-ssl
15
16 [0-disable-encrypt-then-mac-server-sha-ssl]
17 server = 0-disable-encrypt-then-mac-server-sha-server
18 client = 0-disable-encrypt-then-mac-server-sha-client
19
20 [0-disable-encrypt-then-mac-server-sha-server]
21 Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
22 CipherString = DEFAULT
23 Options = -EncryptThenMac
24 PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
25
26 [0-disable-encrypt-then-mac-server-sha-client]
27 CipherString = AES128-SHA
28 VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
29 VerifyMode = Peer
30
31 [test-0]
32 ExpectedResult = Success
33
34
35 # ===========================================================
36
37 [1-disable-encrypt-then-mac-client-sha]
38 ssl_conf = 1-disable-encrypt-then-mac-client-sha-ssl
39
40 [1-disable-encrypt-then-mac-client-sha-ssl]
41 server = 1-disable-encrypt-then-mac-client-sha-server
42 client = 1-disable-encrypt-then-mac-client-sha-client
43
44 [1-disable-encrypt-then-mac-client-sha-server]
45 Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
46 CipherString = DEFAULT
47 PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
48
49 [1-disable-encrypt-then-mac-client-sha-client]
50 CipherString = AES128-SHA
51 Options = -EncryptThenMac
52 VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
53 VerifyMode = Peer
54
55 [test-1]
56 ExpectedResult = Success
57
58
59 # ===========================================================
60
61 [2-disable-encrypt-then-mac-both-sha]
62 ssl_conf = 2-disable-encrypt-then-mac-both-sha-ssl
63
64 [2-disable-encrypt-then-mac-both-sha-ssl]
65 server = 2-disable-encrypt-then-mac-both-sha-server
66 client = 2-disable-encrypt-then-mac-both-sha-client
67
68 [2-disable-encrypt-then-mac-both-sha-server]
69 Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
70 CipherString = DEFAULT
71 Options = -EncryptThenMac
72 PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
73
74 [2-disable-encrypt-then-mac-both-sha-client]
75 CipherString = AES128-SHA
76 Options = -EncryptThenMac
77 VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
78 VerifyMode = Peer
79
80 [test-2]
81 ExpectedResult = Success
82
83
84 # ===========================================================
85
86 [3-disable-encrypt-then-mac-server-sha2]
87 ssl_conf = 3-disable-encrypt-then-mac-server-sha2-ssl
88
89 [3-disable-encrypt-then-mac-server-sha2-ssl]
90 server = 3-disable-encrypt-then-mac-server-sha2-server
91 client = 3-disable-encrypt-then-mac-server-sha2-client
92
93 [3-disable-encrypt-then-mac-server-sha2-server]
94 Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
95 CipherString = DEFAULT
96 Options = -EncryptThenMac
97 PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
98
99 [3-disable-encrypt-then-mac-server-sha2-client]
100 CipherString = AES128-SHA256
101 VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
102 VerifyMode = Peer
103
104 [test-3]
105 ExpectedResult = Success
106
107
108 # ===========================================================
109
110 [4-disable-encrypt-then-mac-client-sha2]
111 ssl_conf = 4-disable-encrypt-then-mac-client-sha2-ssl
112
113 [4-disable-encrypt-then-mac-client-sha2-ssl]
114 server = 4-disable-encrypt-then-mac-client-sha2-server
115 client = 4-disable-encrypt-then-mac-client-sha2-client
116
117 [4-disable-encrypt-then-mac-client-sha2-server]
118 Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
119 CipherString = DEFAULT
120 PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
121
122 [4-disable-encrypt-then-mac-client-sha2-client]
123 CipherString = AES128-SHA256
124 Options = -EncryptThenMac
125 VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
126 VerifyMode = Peer
127
128 [test-4]
129 ExpectedResult = Success
130
131
132 # ===========================================================
133
134 [5-disable-encrypt-then-mac-both-sha2]
135 ssl_conf = 5-disable-encrypt-then-mac-both-sha2-ssl
136
137 [5-disable-encrypt-then-mac-both-sha2-ssl]
138 server = 5-disable-encrypt-then-mac-both-sha2-server
139 client = 5-disable-encrypt-then-mac-both-sha2-client
140
141 [5-disable-encrypt-then-mac-both-sha2-server]
142 Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
143 CipherString = DEFAULT
144 Options = -EncryptThenMac
145 PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
146
147 [5-disable-encrypt-then-mac-both-sha2-client]
148 CipherString = AES128-SHA256
149 Options = -EncryptThenMac
150 VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
151 VerifyMode = Peer
152
153 [test-5]
154 ExpectedResult = Success
155
156