]> git.ipfire.org Git - thirdparty/openssl.git/blob - test/ssl-tests/19-mac-then-encrypt.cnf.in
Update copyright year
[thirdparty/openssl.git] / test / ssl-tests / 19-mac-then-encrypt.cnf.in
1 # -*- mode: perl; -*-
2 # Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
3 #
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
8
9
10 ## SSL test configurations
11
12 package ssltests;
13
14 use OpenSSL::Test::Utils;
15
16 our @tests = (
17 {
18 name => "disable-encrypt-then-mac-server-sha",
19 server => {
20 "Options" => "-EncryptThenMac",
21 },
22 client => {
23 "CipherString" => "AES128-SHA",
24 "MaxProtocol" => "TLSv1.2"
25 },
26 test => {
27 "ExpectedResult" => "Success",
28 },
29 },
30 {
31 name => "disable-encrypt-then-mac-client-sha",
32 server => {
33 },
34 client => {
35 "CipherString" => "AES128-SHA",
36 "Options" => "-EncryptThenMac",
37 "MaxProtocol" => "TLSv1.2"
38 },
39 test => {
40 "ExpectedResult" => "Success",
41 },
42 },
43 {
44 name => "disable-encrypt-then-mac-both-sha",
45 server => {
46 "Options" => "-EncryptThenMac",
47 },
48 client => {
49 "CipherString" => "AES128-SHA",
50 "Options" => "-EncryptThenMac",
51 "MaxProtocol" => "TLSv1.2"
52 },
53 test => {
54 "ExpectedResult" => "Success",
55 },
56 },
57 );
58
59 my @tests_tls1_2 = (
60 {
61 name => "disable-encrypt-then-mac-server-sha2",
62 server => {
63 "Options" => "-EncryptThenMac",
64 },
65 client => {
66 "CipherString" => "AES128-SHA256",
67 "MaxProtocol" => "TLSv1.2"
68 },
69 test => {
70 "ExpectedResult" => "Success",
71 },
72 },
73 {
74 name => "disable-encrypt-then-mac-client-sha2",
75 server => {
76 },
77 client => {
78 "CipherString" => "AES128-SHA256",
79 "Options" => "-EncryptThenMac",
80 "MaxProtocol" => "TLSv1.2"
81 },
82 test => {
83 "ExpectedResult" => "Success",
84 },
85 },
86 {
87 name => "disable-encrypt-then-mac-both-sha2",
88 server => {
89 "Options" => "-EncryptThenMac",
90 },
91 client => {
92 "CipherString" => "AES128-SHA256",
93 "Options" => "-EncryptThenMac",
94 "MaxProtocol" => "TLSv1.2"
95 },
96 test => {
97 "ExpectedResult" => "Success",
98 },
99 },
100 );
101
102 push @tests, @tests_tls1_2 unless disabled("tls1_2");