xref: /aosp_15_r20/external/tcpdump/tests/crypto.tests (revision 05b00f6010a2396e3db2409989fc67270046269f)
1# -*- perl -*-
2
3# Only attempt OpenSSL-specific tests when compiled with the library.
4# Reading the secret(s) from a file does not work with Capsicum.
5
6$testlist = [
7    {
8        config_set => 'HAVE_LIBCRYPTO',
9        name => 'esp1',
10        input => '02-sunrise-sunset-esp.pcap',
11        output => 'esp1.out',
12        args   => '-E "[email protected] 3des-cbc-hmac96:0x4043434545464649494a4a4c4c4f4f515152525454575758"'
13    },
14
15    {
16        config_set => 'HAVE_LIBCRYPTO',
17        name => 'esp2',
18        input => '08-sunrise-sunset-esp2.pcap',
19        output => 'esp2.out',
20        args   => '-E "[email protected] 3des-cbc-hmac96:0x43434545464649494a4a4c4c4f4f51515252545457575840,[email protected] 3des-cbc-hmac96:0x434545464649494a4a4c4c4f4f5151525254545757584043"'
21    },
22
23    {
24        config_set => 'HAVE_LIBCRYPTO',
25        name => 'esp3',
26        input => '02-sunrise-sunset-esp.pcap',
27        output => 'esp1.out',
28        args   => '-E "3des-cbc-hmac96:0x4043434545464649494a4a4c4c4f4f515152525454575758"',
29    },
30
31    {
32        config_set   => 'HAVE_LIBCRYPTO',
33        config_unset => 'HAVE_CAPSICUM',
34        name => 'esp4',
35        input => '08-sunrise-sunset-esp2.pcap',
36        output => 'esp2.out',
37        args   => '-E "file @TESTDIR@/esp-secrets.txt"',
38    },
39
40    {
41        config_set   => 'HAVE_LIBCRYPTO',
42        config_unset => 'HAVE_CAPSICUM',
43        name => 'esp5',
44        input => '08-sunrise-sunset-aes.pcap',
45        output => 'esp5.out',
46        args   => '-E "file @TESTDIR@/esp-secrets.txt"',
47    },
48
49    {
50        config_set   => 'HAVE_LIBCRYPTO',
51        config_unset => 'HAVE_CAPSICUM',
52        name => 'espudp1',
53        input => 'espudp1.pcap',
54        output => 'espudp1.out',
55        args   => '-nnnn -E "file @TESTDIR@/esp-secrets.txt"',
56    },
57
58    {
59        config_set   => 'HAVE_LIBCRYPTO',
60        config_unset => 'HAVE_CAPSICUM',
61        name => 'ikev2pI2',
62        input => 'ikev2pI2.pcap',
63        output => 'ikev2pI2.out',
64        args   => '-v -v -v -v -E "file @TESTDIR@/ikev2pI2-secrets.txt"',
65    },
66
67    {
68        config_set   => 'HAVE_LIBCRYPTO',
69        config_unset => 'HAVE_CAPSICUM',
70        name => 'isakmp4',
71        input => 'isakmp4500.pcap',
72        output => 'isakmp4.out',
73        args   => '-E "file @TESTDIR@/esp-secrets.txt"',
74    },
75
76    #bgp-as-path-oobr-ssl ${testsdir}/bgp-as-path-oobr.pcap ${testsdir}/bgp-as-path-oobr-ssl.out '-vvv -e'
77    {
78        config_set   => 'HAVE_LIBCRYPTO',
79        name => 'bgp-as-path-oobr-ssl',
80        input => 'bgp-as-path-oobr.pcap',
81        output => 'bgp-as-path-oobr-ssl.out',
82        args   => '-vvv -e'
83    },
84
85    # bgp-aigp-oobr-ssl ${testsdir}/bgp-aigp-oobr.pcap ${testsdir}/bgp-aigp-oobr-ssl.out '-vvv -e'
86    {
87        config_set   => 'HAVE_LIBCRYPTO',
88        name => 'bgp-aigp-oobr-ssl',
89        input => 'bgp-aigp-oobr.pcap',
90        output => 'bgp-aigp-oobr-ssl.out',
91        args   => '-vvv -e'
92    },
93
94    # bgp-as-path-oobr-nossl ${testsdir}/bgp-as-path-oobr.pcap ${testsdir}/bgp-as-path-oobr-nossl.out '-vvv -e'
95    {
96        config_unset   => 'HAVE_LIBCRYPTO',
97        name => 'bgp-as-path-oobr-nossl',
98        input => 'bgp-as-path-oobr.pcap',
99        output => 'bgp-as-path-oobr-nossl.out',
100        args   => '-vvv -e'
101    },
102
103    # bgp-aigp-oobr-nossl ${testsdir}/bgp-aigp-oobr.pcap ${testsdir}/bgp-aigp-oobr-nossl.out '-vvv -e'
104    {
105        config_unset   => 'HAVE_LIBCRYPTO',
106        name => 'bgp-aigp-oobr-nossl',
107        input => 'bgp-aigp-oobr.pcap',
108        output => 'bgp-aigp-oobr-nossl.out',
109        args   => '-vvv -e'
110    },
111
112    ];
113
1141;
115
116
117