“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 1 | import socket |
Dmitry Valter | 34fa0ce | 2024-03-11 10:38:46 +0000 | [diff] [blame] | 2 | import unittest |
Klement Sekera | 31da2e3 | 2018-06-24 22:49:55 +0200 | [diff] [blame] | 3 | from scapy.layers.ipsec import ESP |
Christian Hopps | fb7e7ed | 2019-11-03 07:02:15 -0500 | [diff] [blame] | 4 | from scapy.layers.inet import IP, ICMP, UDP |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 5 | from scapy.layers.inet6 import IPv6 |
| 6 | from scapy.layers.l2 import Ether |
| 7 | from scapy.packet import Raw |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 8 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 9 | from template_ipsec import ( |
| 10 | IpsecTra46Tests, |
| 11 | IpsecTun46Tests, |
| 12 | TemplateIpsec, |
| 13 | IpsecTcpTests, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 14 | IpsecTra4Tests, |
| 15 | config_tra_params, |
| 16 | config_tun_params, |
| 17 | IPsecIPv4Params, |
| 18 | IPsecIPv6Params, |
| 19 | IpsecTra4, |
| 20 | IpsecTun4, |
| 21 | IpsecTra6, |
| 22 | IpsecTun6, |
| 23 | IpsecTun6HandoffTests, |
| 24 | IpsecTun4HandoffTests, |
| 25 | IpsecTra6ExtTests, |
| 26 | ) |
| 27 | from vpp_ipsec import VppIpsecSpd, VppIpsecSpdEntry, VppIpsecSA, VppIpsecSpdItfBinding |
Neale Ranns | 311124e | 2019-01-24 04:52:25 -0800 | [diff] [blame] | 28 | from vpp_ip_route import VppIpRoute, VppRoutePath |
| 29 | from vpp_ip import DpoProto |
Neale Ranns | 17dcec0 | 2019-01-09 21:22:20 -0800 | [diff] [blame] | 30 | from vpp_papi import VppEnum |
Dmitry Valter | 34fa0ce | 2024-03-11 10:38:46 +0000 | [diff] [blame] | 31 | from config import config |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 32 | |
Neale Ranns | c87b66c | 2019-02-07 07:26:12 -0800 | [diff] [blame] | 33 | NUM_PKTS = 67 |
Benoît Ganne | 5c481ff | 2021-03-08 10:22:51 +0100 | [diff] [blame] | 34 | engines_supporting_chain_bufs = ["openssl", "async"] |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 35 | engines = ["ia32", "ipsecmb", "openssl"] |
Neale Ranns | c87b66c | 2019-02-07 07:26:12 -0800 | [diff] [blame] | 36 | |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 37 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 38 | class ConfigIpsecESP(TemplateIpsec): |
| 39 | encryption_type = ESP |
| 40 | tra4_encrypt_node_name = "esp4-encrypt" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 41 | tra4_decrypt_node_name = ["esp4-decrypt", "esp4-decrypt-post"] |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 42 | tra6_encrypt_node_name = "esp6-encrypt" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 43 | tra6_decrypt_node_name = ["esp6-decrypt", "esp6-decrypt-post"] |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 44 | tun4_encrypt_node_name = "esp4-encrypt" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 45 | tun4_decrypt_node_name = ["esp4-decrypt", "esp4-decrypt-post"] |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 46 | tun6_encrypt_node_name = "esp6-encrypt" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 47 | tun6_decrypt_node_name = ["esp6-decrypt", "esp6-decrypt-post"] |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 48 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 49 | @classmethod |
| 50 | def setUpClass(cls): |
| 51 | super(ConfigIpsecESP, cls).setUpClass() |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 52 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 53 | @classmethod |
| 54 | def tearDownClass(cls): |
| 55 | super(ConfigIpsecESP, cls).tearDownClass() |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 56 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 57 | def setUp(self): |
| 58 | super(ConfigIpsecESP, self).setUp() |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 59 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 60 | def tearDown(self): |
| 61 | super(ConfigIpsecESP, self).tearDown() |
| 62 | |
Maxime Peim | 0e2f188 | 2022-12-22 11:26:57 +0000 | [diff] [blame] | 63 | def config_anti_replay(self, params, anti_replay_window_size=64): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 64 | saf = VppEnum.vl_api_ipsec_sad_flags_t |
| 65 | for p in params: |
| 66 | p.flags |= saf.IPSEC_API_SAD_FLAG_USE_ANTI_REPLAY |
Maxime Peim | 0e2f188 | 2022-12-22 11:26:57 +0000 | [diff] [blame] | 67 | p.anti_replay_window_size = anti_replay_window_size |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 68 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 69 | def config_network(self, params): |
| 70 | self.net_objs = [] |
| 71 | self.tun_if = self.pg0 |
| 72 | self.tra_if = self.pg2 |
| 73 | self.logger.info(self.vapi.ppcli("show int addr")) |
| 74 | |
| 75 | self.tra_spd = VppIpsecSpd(self, self.tra_spd_id) |
| 76 | self.tra_spd.add_vpp_config() |
| 77 | self.net_objs.append(self.tra_spd) |
| 78 | self.tun_spd = VppIpsecSpd(self, self.tun_spd_id) |
| 79 | self.tun_spd.add_vpp_config() |
| 80 | self.net_objs.append(self.tun_spd) |
| 81 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 82 | b = VppIpsecSpdItfBinding(self, self.tun_spd, self.tun_if) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 83 | b.add_vpp_config() |
| 84 | self.net_objs.append(b) |
| 85 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 86 | b = VppIpsecSpdItfBinding(self, self.tra_spd, self.tra_if) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 87 | b.add_vpp_config() |
| 88 | self.net_objs.append(b) |
| 89 | |
| 90 | for p in params: |
| 91 | self.config_esp_tra(p) |
| 92 | config_tra_params(p, self.encryption_type) |
| 93 | for p in params: |
| 94 | self.config_esp_tun(p) |
Neale Ranns | 12989b5 | 2019-09-26 16:20:19 +0000 | [diff] [blame] | 95 | config_tun_params(p, self.encryption_type, self.tun_if) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 96 | |
| 97 | for p in params: |
| 98 | d = DpoProto.DPO_PROTO_IP6 if p.is_ipv6 else DpoProto.DPO_PROTO_IP4 |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 99 | r = VppIpRoute( |
| 100 | self, |
| 101 | p.remote_tun_if_host, |
| 102 | p.addr_len, |
| 103 | [ |
| 104 | VppRoutePath( |
| 105 | self.tun_if.remote_addr[p.addr_type], 0xFFFFFFFF, proto=d |
| 106 | ) |
| 107 | ], |
| 108 | ) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 109 | r.add_vpp_config() |
| 110 | self.net_objs.append(r) |
| 111 | |
| 112 | self.logger.info(self.vapi.ppcli("show ipsec all")) |
| 113 | |
| 114 | def unconfig_network(self): |
| 115 | for o in reversed(self.net_objs): |
| 116 | o.remove_vpp_config() |
| 117 | self.net_objs = [] |
| 118 | |
| 119 | def config_esp_tun(self, params): |
| 120 | addr_type = params.addr_type |
| 121 | scapy_tun_sa_id = params.scapy_tun_sa_id |
| 122 | scapy_tun_spi = params.scapy_tun_spi |
| 123 | vpp_tun_sa_id = params.vpp_tun_sa_id |
| 124 | vpp_tun_spi = params.vpp_tun_spi |
| 125 | auth_algo_vpp_id = params.auth_algo_vpp_id |
| 126 | auth_key = params.auth_key |
| 127 | crypt_algo_vpp_id = params.crypt_algo_vpp_id |
| 128 | crypt_key = params.crypt_key |
| 129 | remote_tun_if_host = params.remote_tun_if_host |
| 130 | addr_any = params.addr_any |
| 131 | addr_bcast = params.addr_bcast |
| 132 | e = VppEnum.vl_api_ipsec_spd_action_t |
Neale Ranns | 49e7ef6 | 2019-04-10 17:24:29 +0000 | [diff] [blame] | 133 | flags = params.flags |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 134 | tun_flags = params.tun_flags |
Neale Ranns | 80f6fd5 | 2019-04-16 02:41:34 +0000 | [diff] [blame] | 135 | salt = params.salt |
Maxime Peim | 0e2f188 | 2022-12-22 11:26:57 +0000 | [diff] [blame] | 136 | anti_replay_window_size = params.anti_replay_window_size |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 137 | objs = [] |
| 138 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 139 | params.tun_sa_in = VppIpsecSA( |
| 140 | self, |
| 141 | scapy_tun_sa_id, |
| 142 | scapy_tun_spi, |
| 143 | auth_algo_vpp_id, |
| 144 | auth_key, |
| 145 | crypt_algo_vpp_id, |
| 146 | crypt_key, |
| 147 | self.vpp_esp_protocol, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 148 | self.tun_if.remote_addr[addr_type], |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 149 | self.tun_if.local_addr[addr_type], |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 150 | tun_flags=tun_flags, |
| 151 | dscp=params.dscp, |
| 152 | flags=flags, |
| 153 | salt=salt, |
| 154 | hop_limit=params.outer_hop_limit, |
Maxime Peim | 0e2f188 | 2022-12-22 11:26:57 +0000 | [diff] [blame] | 155 | anti_replay_window_size=anti_replay_window_size, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 156 | ) |
| 157 | params.tun_sa_out = VppIpsecSA( |
| 158 | self, |
| 159 | vpp_tun_sa_id, |
| 160 | vpp_tun_spi, |
| 161 | auth_algo_vpp_id, |
| 162 | auth_key, |
| 163 | crypt_algo_vpp_id, |
| 164 | crypt_key, |
| 165 | self.vpp_esp_protocol, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 166 | self.tun_if.local_addr[addr_type], |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 167 | self.tun_if.remote_addr[addr_type], |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 168 | tun_flags=tun_flags, |
| 169 | dscp=params.dscp, |
| 170 | flags=flags, |
| 171 | salt=salt, |
| 172 | hop_limit=params.outer_hop_limit, |
Maxime Peim | 0e2f188 | 2022-12-22 11:26:57 +0000 | [diff] [blame] | 173 | anti_replay_window_size=anti_replay_window_size, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 174 | ) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 175 | objs.append(params.tun_sa_in) |
| 176 | objs.append(params.tun_sa_out) |
| 177 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 178 | params.spd_policy_in_any = VppIpsecSpdEntry( |
| 179 | self, |
| 180 | self.tun_spd, |
| 181 | scapy_tun_sa_id, |
| 182 | addr_any, |
| 183 | addr_bcast, |
| 184 | addr_any, |
| 185 | addr_bcast, |
| 186 | socket.IPPROTO_ESP, |
| 187 | ) |
| 188 | params.spd_policy_out_any = VppIpsecSpdEntry( |
| 189 | self, |
| 190 | self.tun_spd, |
| 191 | scapy_tun_sa_id, |
| 192 | addr_any, |
| 193 | addr_bcast, |
| 194 | addr_any, |
| 195 | addr_bcast, |
| 196 | socket.IPPROTO_ESP, |
| 197 | is_outbound=0, |
| 198 | ) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 199 | objs.append(params.spd_policy_out_any) |
| 200 | objs.append(params.spd_policy_in_any) |
| 201 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 202 | objs.append( |
| 203 | VppIpsecSpdEntry( |
| 204 | self, |
| 205 | self.tun_spd, |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 206 | scapy_tun_sa_id, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 207 | remote_tun_if_host, |
| 208 | remote_tun_if_host, |
| 209 | self.pg1.remote_addr[addr_type], |
| 210 | self.pg1.remote_addr[addr_type], |
Piotr Bronowski | 815c6a4 | 2022-06-09 09:09:28 +0000 | [diff] [blame] | 211 | socket.IPPROTO_RAW, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 212 | priority=10, |
| 213 | policy=e.IPSEC_API_SPD_ACTION_PROTECT, |
| 214 | is_outbound=0, |
| 215 | ) |
| 216 | ) |
| 217 | objs.append( |
| 218 | VppIpsecSpdEntry( |
| 219 | self, |
| 220 | self.tun_spd, |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 221 | vpp_tun_sa_id, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 222 | self.pg1.remote_addr[addr_type], |
| 223 | self.pg1.remote_addr[addr_type], |
| 224 | remote_tun_if_host, |
| 225 | remote_tun_if_host, |
Piotr Bronowski | 815c6a4 | 2022-06-09 09:09:28 +0000 | [diff] [blame] | 226 | socket.IPPROTO_RAW, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 227 | policy=e.IPSEC_API_SPD_ACTION_PROTECT, |
| 228 | priority=10, |
| 229 | ) |
| 230 | ) |
| 231 | objs.append( |
| 232 | VppIpsecSpdEntry( |
| 233 | self, |
| 234 | self.tun_spd, |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 235 | scapy_tun_sa_id, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 236 | remote_tun_if_host, |
| 237 | remote_tun_if_host, |
| 238 | self.pg0.local_addr[addr_type], |
| 239 | self.pg0.local_addr[addr_type], |
Piotr Bronowski | 815c6a4 | 2022-06-09 09:09:28 +0000 | [diff] [blame] | 240 | socket.IPPROTO_RAW, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 241 | priority=20, |
| 242 | policy=e.IPSEC_API_SPD_ACTION_PROTECT, |
| 243 | is_outbound=0, |
| 244 | ) |
| 245 | ) |
| 246 | objs.append( |
| 247 | VppIpsecSpdEntry( |
| 248 | self, |
| 249 | self.tun_spd, |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 250 | vpp_tun_sa_id, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 251 | self.pg0.local_addr[addr_type], |
| 252 | self.pg0.local_addr[addr_type], |
| 253 | remote_tun_if_host, |
| 254 | remote_tun_if_host, |
Piotr Bronowski | 815c6a4 | 2022-06-09 09:09:28 +0000 | [diff] [blame] | 255 | socket.IPPROTO_RAW, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 256 | policy=e.IPSEC_API_SPD_ACTION_PROTECT, |
| 257 | priority=20, |
| 258 | ) |
| 259 | ) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 260 | for o in objs: |
| 261 | o.add_vpp_config() |
| 262 | self.net_objs = self.net_objs + objs |
| 263 | |
| 264 | def config_esp_tra(self, params): |
| 265 | addr_type = params.addr_type |
| 266 | scapy_tra_sa_id = params.scapy_tra_sa_id |
| 267 | scapy_tra_spi = params.scapy_tra_spi |
| 268 | vpp_tra_sa_id = params.vpp_tra_sa_id |
| 269 | vpp_tra_spi = params.vpp_tra_spi |
| 270 | auth_algo_vpp_id = params.auth_algo_vpp_id |
| 271 | auth_key = params.auth_key |
| 272 | crypt_algo_vpp_id = params.crypt_algo_vpp_id |
| 273 | crypt_key = params.crypt_key |
| 274 | addr_any = params.addr_any |
| 275 | addr_bcast = params.addr_bcast |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 276 | e = VppEnum.vl_api_ipsec_spd_action_t |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 277 | flags = params.flags |
Neale Ranns | 80f6fd5 | 2019-04-16 02:41:34 +0000 | [diff] [blame] | 278 | salt = params.salt |
Maxime Peim | 0e2f188 | 2022-12-22 11:26:57 +0000 | [diff] [blame] | 279 | anti_replay_window_size = params.anti_replay_window_size |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 280 | objs = [] |
| 281 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 282 | params.tra_sa_in = VppIpsecSA( |
| 283 | self, |
| 284 | scapy_tra_sa_id, |
| 285 | scapy_tra_spi, |
| 286 | auth_algo_vpp_id, |
| 287 | auth_key, |
| 288 | crypt_algo_vpp_id, |
| 289 | crypt_key, |
| 290 | self.vpp_esp_protocol, |
| 291 | flags=flags, |
| 292 | salt=salt, |
Maxime Peim | 0e2f188 | 2022-12-22 11:26:57 +0000 | [diff] [blame] | 293 | anti_replay_window_size=anti_replay_window_size, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 294 | ) |
| 295 | params.tra_sa_out = VppIpsecSA( |
| 296 | self, |
| 297 | vpp_tra_sa_id, |
| 298 | vpp_tra_spi, |
| 299 | auth_algo_vpp_id, |
| 300 | auth_key, |
| 301 | crypt_algo_vpp_id, |
| 302 | crypt_key, |
| 303 | self.vpp_esp_protocol, |
| 304 | flags=flags, |
| 305 | salt=salt, |
Maxime Peim | 0e2f188 | 2022-12-22 11:26:57 +0000 | [diff] [blame] | 306 | anti_replay_window_size=anti_replay_window_size, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 307 | ) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 308 | objs.append(params.tra_sa_in) |
| 309 | objs.append(params.tra_sa_out) |
| 310 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 311 | objs.append( |
| 312 | VppIpsecSpdEntry( |
| 313 | self, |
| 314 | self.tra_spd, |
| 315 | vpp_tra_sa_id, |
| 316 | addr_any, |
| 317 | addr_bcast, |
| 318 | addr_any, |
| 319 | addr_bcast, |
| 320 | socket.IPPROTO_ESP, |
| 321 | ) |
| 322 | ) |
| 323 | objs.append( |
| 324 | VppIpsecSpdEntry( |
| 325 | self, |
| 326 | self.tra_spd, |
| 327 | vpp_tra_sa_id, |
| 328 | addr_any, |
| 329 | addr_bcast, |
| 330 | addr_any, |
| 331 | addr_bcast, |
| 332 | socket.IPPROTO_ESP, |
| 333 | is_outbound=0, |
| 334 | ) |
| 335 | ) |
| 336 | objs.append( |
| 337 | VppIpsecSpdEntry( |
| 338 | self, |
| 339 | self.tra_spd, |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 340 | scapy_tra_sa_id, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 341 | self.tra_if.local_addr[addr_type], |
| 342 | self.tra_if.local_addr[addr_type], |
| 343 | self.tra_if.remote_addr[addr_type], |
| 344 | self.tra_if.remote_addr[addr_type], |
Piotr Bronowski | 815c6a4 | 2022-06-09 09:09:28 +0000 | [diff] [blame] | 345 | socket.IPPROTO_RAW, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 346 | priority=10, |
| 347 | policy=e.IPSEC_API_SPD_ACTION_PROTECT, |
| 348 | is_outbound=0, |
| 349 | ) |
| 350 | ) |
| 351 | objs.append( |
| 352 | VppIpsecSpdEntry( |
| 353 | self, |
| 354 | self.tra_spd, |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 355 | vpp_tra_sa_id, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 356 | self.tra_if.local_addr[addr_type], |
| 357 | self.tra_if.local_addr[addr_type], |
| 358 | self.tra_if.remote_addr[addr_type], |
| 359 | self.tra_if.remote_addr[addr_type], |
Piotr Bronowski | 815c6a4 | 2022-06-09 09:09:28 +0000 | [diff] [blame] | 360 | socket.IPPROTO_RAW, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 361 | policy=e.IPSEC_API_SPD_ACTION_PROTECT, |
| 362 | priority=10, |
| 363 | ) |
| 364 | ) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 365 | for o in objs: |
| 366 | o.add_vpp_config() |
| 367 | self.net_objs = self.net_objs + objs |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 368 | |
| 369 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 370 | class TemplateIpsecEsp(ConfigIpsecESP): |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 371 | """ |
| 372 | Basic test for ipsec esp sanity - tunnel and transport modes. |
| 373 | |
| 374 | Below 4 cases are covered as part of this test |
Dave Wallace | d170681 | 2021-08-12 18:36:02 -0400 | [diff] [blame] | 375 | |
| 376 | #. ipsec esp v4 transport basic test - IPv4 Transport mode |
Paul Vinciguerra | 8feeaff | 2019-03-27 11:25:48 -0700 | [diff] [blame] | 377 | scenario using HMAC-SHA1-96 integrity algo |
Dave Wallace | d170681 | 2021-08-12 18:36:02 -0400 | [diff] [blame] | 378 | |
| 379 | #. ipsec esp v4 transport burst test |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 380 | Above test for 257 pkts |
| 381 | |
Dave Wallace | d170681 | 2021-08-12 18:36:02 -0400 | [diff] [blame] | 382 | #. ipsec esp 4o4 tunnel basic test - IPv4 Tunnel mode |
| 383 | scenario using HMAC-SHA1-96 integrity algo |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 384 | |
Dave Wallace | d170681 | 2021-08-12 18:36:02 -0400 | [diff] [blame] | 385 | #. ipsec esp 4o4 tunnel burst test |
| 386 | Above test for 257 pkts |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 387 | |
Dave Wallace | d170681 | 2021-08-12 18:36:02 -0400 | [diff] [blame] | 388 | TRANSPORT MODE:: |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 389 | |
Dave Wallace | d170681 | 2021-08-12 18:36:02 -0400 | [diff] [blame] | 390 | --- encrypt --- |
| 391 | |pg2| <-------> |VPP| |
| 392 | --- decrypt --- |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 393 | |
Dave Wallace | d170681 | 2021-08-12 18:36:02 -0400 | [diff] [blame] | 394 | TUNNEL MODE:: |
| 395 | |
| 396 | --- encrypt --- plain --- |
| 397 | |pg0| <------- |VPP| <------ |pg1| |
| 398 | --- --- --- |
| 399 | |
| 400 | --- decrypt --- plain --- |
| 401 | |pg0| -------> |VPP| ------> |pg1| |
| 402 | --- --- --- |
| 403 | |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 404 | """ |
| 405 | |
Paul Vinciguerra | 7f9b7f9 | 2019-03-12 19:23:27 -0700 | [diff] [blame] | 406 | @classmethod |
| 407 | def setUpClass(cls): |
| 408 | super(TemplateIpsecEsp, cls).setUpClass() |
| 409 | |
| 410 | @classmethod |
| 411 | def tearDownClass(cls): |
| 412 | super(TemplateIpsecEsp, cls).tearDownClass() |
| 413 | |
Neale Ranns | 8e4a89b | 2019-01-23 08:16:17 -0800 | [diff] [blame] | 414 | def setUp(self): |
| 415 | super(TemplateIpsecEsp, self).setUp() |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 416 | self.config_anti_replay(self.params.values()) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 417 | self.config_network(self.params.values()) |
Klement Sekera | 611864f | 2018-09-26 11:19:00 +0200 | [diff] [blame] | 418 | |
Neale Ranns | 8e4a89b | 2019-01-23 08:16:17 -0800 | [diff] [blame] | 419 | def tearDown(self): |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 420 | self.unconfig_network() |
Neale Ranns | 8e4a89b | 2019-01-23 08:16:17 -0800 | [diff] [blame] | 421 | super(TemplateIpsecEsp, self).tearDown() |
Neale Ranns | 8e4a89b | 2019-01-23 08:16:17 -0800 | [diff] [blame] | 422 | |
Klement Sekera | 611864f | 2018-09-26 11:19:00 +0200 | [diff] [blame] | 423 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 424 | class TestIpsecEsp1( |
| 425 | TemplateIpsecEsp, IpsecTra46Tests, IpsecTun46Tests, IpsecTra6ExtTests |
| 426 | ): |
| 427 | """Ipsec ESP - TUN & TRA tests""" |
Neale Ranns | b1fd80f | 2020-05-12 13:33:56 +0000 | [diff] [blame] | 428 | |
| 429 | @classmethod |
| 430 | def setUpClass(cls): |
| 431 | super(TestIpsecEsp1, cls).setUpClass() |
| 432 | |
| 433 | @classmethod |
| 434 | def tearDownClass(cls): |
| 435 | super(TestIpsecEsp1, cls).tearDownClass() |
| 436 | |
| 437 | def setUp(self): |
| 438 | super(TestIpsecEsp1, self).setUp() |
| 439 | |
| 440 | def tearDown(self): |
| 441 | super(TestIpsecEsp1, self).tearDown() |
| 442 | |
| 443 | def test_tun_46(self): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 444 | """ipsec 4o6 tunnel""" |
Neale Ranns | b1fd80f | 2020-05-12 13:33:56 +0000 | [diff] [blame] | 445 | # add an SPD entry to direct 2.2.2.2 to the v6 tunnel SA |
| 446 | p6 = self.ipv6_params |
| 447 | p4 = self.ipv4_params |
| 448 | |
| 449 | p6.remote_tun_if_host4 = "2.2.2.2" |
| 450 | e = VppEnum.vl_api_ipsec_spd_action_t |
| 451 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 452 | VppIpsecSpdEntry( |
| 453 | self, |
| 454 | self.tun_spd, |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 455 | p6.vpp_tun_sa_id, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 456 | self.pg1.remote_addr[p4.addr_type], |
| 457 | self.pg1.remote_addr[p4.addr_type], |
| 458 | p6.remote_tun_if_host4, |
| 459 | p6.remote_tun_if_host4, |
Piotr Bronowski | 815c6a4 | 2022-06-09 09:09:28 +0000 | [diff] [blame] | 460 | socket.IPPROTO_RAW, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 461 | priority=10, |
| 462 | policy=e.IPSEC_API_SPD_ACTION_PROTECT, |
| 463 | is_outbound=1, |
| 464 | ).add_vpp_config() |
| 465 | VppIpRoute( |
| 466 | self, |
| 467 | p6.remote_tun_if_host4, |
| 468 | p4.addr_len, |
| 469 | [VppRoutePath(self.tun_if.remote_addr[p4.addr_type], 0xFFFFFFFF)], |
| 470 | ).add_vpp_config() |
Neale Ranns | b1fd80f | 2020-05-12 13:33:56 +0000 | [diff] [blame] | 471 | |
| 472 | old_name = self.tun6_encrypt_node_name |
| 473 | self.tun6_encrypt_node_name = "esp4-encrypt" |
| 474 | |
| 475 | self.verify_tun_46(p6, count=63) |
| 476 | self.tun6_encrypt_node_name = old_name |
| 477 | |
| 478 | def test_tun_64(self): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 479 | """ipsec 6o4 tunnel""" |
Neale Ranns | b1fd80f | 2020-05-12 13:33:56 +0000 | [diff] [blame] | 480 | # add an SPD entry to direct 4444::4 to the v4 tunnel SA |
| 481 | p6 = self.ipv6_params |
| 482 | p4 = self.ipv4_params |
| 483 | |
| 484 | p4.remote_tun_if_host6 = "4444::4" |
| 485 | e = VppEnum.vl_api_ipsec_spd_action_t |
| 486 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 487 | VppIpsecSpdEntry( |
| 488 | self, |
| 489 | self.tun_spd, |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 490 | p4.vpp_tun_sa_id, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 491 | self.pg1.remote_addr[p6.addr_type], |
| 492 | self.pg1.remote_addr[p6.addr_type], |
| 493 | p4.remote_tun_if_host6, |
| 494 | p4.remote_tun_if_host6, |
Piotr Bronowski | 815c6a4 | 2022-06-09 09:09:28 +0000 | [diff] [blame] | 495 | socket.IPPROTO_RAW, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 496 | priority=10, |
| 497 | policy=e.IPSEC_API_SPD_ACTION_PROTECT, |
| 498 | is_outbound=1, |
| 499 | ).add_vpp_config() |
Neale Ranns | b1fd80f | 2020-05-12 13:33:56 +0000 | [diff] [blame] | 500 | d = DpoProto.DPO_PROTO_IP6 |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 501 | VppIpRoute( |
| 502 | self, |
| 503 | p4.remote_tun_if_host6, |
| 504 | p6.addr_len, |
| 505 | [VppRoutePath(self.tun_if.remote_addr[p6.addr_type], 0xFFFFFFFF, proto=d)], |
| 506 | ).add_vpp_config() |
Neale Ranns | b1fd80f | 2020-05-12 13:33:56 +0000 | [diff] [blame] | 507 | |
| 508 | old_name = self.tun4_encrypt_node_name |
| 509 | self.tun4_encrypt_node_name = "esp6-encrypt" |
| 510 | self.verify_tun_64(p4, count=63) |
| 511 | self.tun4_encrypt_node_name = old_name |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 512 | |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 513 | |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 514 | class TestIpsecEspTun(TemplateIpsecEsp, IpsecTun46Tests): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 515 | """Ipsec ESP - TUN encap tests""" |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 516 | |
| 517 | def setUp(self): |
| 518 | self.ipv4_params = IPsecIPv4Params() |
| 519 | self.ipv6_params = IPsecIPv6Params() |
| 520 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 521 | c = ( |
| 522 | VppEnum.vl_api_tunnel_encap_decap_flags_t.TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP |
| 523 | ) |
| 524 | c1 = c | ( |
| 525 | VppEnum.vl_api_tunnel_encap_decap_flags_t.TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN |
| 526 | ) |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 527 | |
| 528 | self.ipv4_params.tun_flags = c |
| 529 | self.ipv6_params.tun_flags = c1 |
| 530 | |
| 531 | super(TestIpsecEspTun, self).setUp() |
| 532 | |
| 533 | def gen_pkts(self, sw_intf, src, dst, count=1, payload_size=54): |
| 534 | # set the DSCP + ECN - flags are set to copy only DSCP |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 535 | return [ |
| 536 | Ether(src=sw_intf.remote_mac, dst=sw_intf.local_mac) |
| 537 | / IP(src=src, dst=dst, tos=5) |
| 538 | / UDP(sport=4444, dport=4444) |
| 539 | / Raw(b"X" * payload_size) |
| 540 | for i in range(count) |
| 541 | ] |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 542 | |
Neale Ranns | 9ec846c | 2021-02-09 14:04:02 +0000 | [diff] [blame] | 543 | def gen_pkts6(self, p, sw_intf, src, dst, count=1, payload_size=54): |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 544 | # set the DSCP + ECN - flags are set to copy both |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 545 | return [ |
| 546 | Ether(src=sw_intf.remote_mac, dst=sw_intf.local_mac) |
| 547 | / IPv6(src=src, dst=dst, tc=5) |
| 548 | / UDP(sport=4444, dport=4444) |
| 549 | / Raw(b"X" * payload_size) |
| 550 | for i in range(count) |
| 551 | ] |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 552 | |
| 553 | def verify_encrypted(self, p, sa, rxs): |
| 554 | # just check that only the DSCP is copied |
| 555 | for rx in rxs: |
| 556 | self.assertEqual(rx[IP].tos, 4) |
| 557 | |
| 558 | def verify_encrypted6(self, p, sa, rxs): |
| 559 | # just check that the DSCP & ECN are copied |
| 560 | for rx in rxs: |
| 561 | self.assertEqual(rx[IPv6].tc, 5) |
| 562 | |
| 563 | |
| 564 | class TestIpsecEspTun2(TemplateIpsecEsp, IpsecTun46Tests): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 565 | """Ipsec ESP - TUN DSCP tests""" |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 566 | |
| 567 | def setUp(self): |
| 568 | self.ipv4_params = IPsecIPv4Params() |
| 569 | self.ipv6_params = IPsecIPv6Params() |
| 570 | |
| 571 | self.ipv4_params.dscp = VppEnum.vl_api_ip_dscp_t.IP_API_DSCP_EF |
| 572 | self.ipv6_params.dscp = VppEnum.vl_api_ip_dscp_t.IP_API_DSCP_AF11 |
| 573 | |
| 574 | super(TestIpsecEspTun2, self).setUp() |
| 575 | |
| 576 | def gen_pkts(self, sw_intf, src, dst, count=1, payload_size=54): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 577 | return [ |
| 578 | Ether(src=sw_intf.remote_mac, dst=sw_intf.local_mac) |
| 579 | / IP(src=src, dst=dst) |
| 580 | / UDP(sport=4444, dport=4444) |
| 581 | / Raw(b"X" * payload_size) |
| 582 | for i in range(count) |
| 583 | ] |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 584 | |
Neale Ranns | 9ec846c | 2021-02-09 14:04:02 +0000 | [diff] [blame] | 585 | def gen_pkts6(self, p, sw_intf, src, dst, count=1, payload_size=54): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 586 | return [ |
| 587 | Ether(src=sw_intf.remote_mac, dst=sw_intf.local_mac) |
| 588 | / IPv6(src=src, dst=dst) |
| 589 | / UDP(sport=4444, dport=4444) |
| 590 | / Raw(b"X" * payload_size) |
| 591 | for i in range(count) |
| 592 | ] |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 593 | |
| 594 | def verify_encrypted(self, p, sa, rxs): |
Neale Ranns | 9ec846c | 2021-02-09 14:04:02 +0000 | [diff] [blame] | 595 | # just check that only the DSCP is set |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 596 | for rx in rxs: |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 597 | self.assertEqual(rx[IP].tos, VppEnum.vl_api_ip_dscp_t.IP_API_DSCP_EF << 2) |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 598 | |
| 599 | def verify_encrypted6(self, p, sa, rxs): |
Neale Ranns | 9ec846c | 2021-02-09 14:04:02 +0000 | [diff] [blame] | 600 | # just check that the DSCP is set |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 601 | for rx in rxs: |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 602 | self.assertEqual( |
| 603 | rx[IPv6].tc, VppEnum.vl_api_ip_dscp_t.IP_API_DSCP_AF11 << 2 |
| 604 | ) |
Neale Ranns | 041add7 | 2020-01-02 04:06:10 +0000 | [diff] [blame] | 605 | |
| 606 | |
Klement Sekera | 31da2e3 | 2018-06-24 22:49:55 +0200 | [diff] [blame] | 607 | class TestIpsecEsp2(TemplateIpsecEsp, IpsecTcpTests): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 608 | """Ipsec ESP - TCP tests""" |
| 609 | |
Klement Sekera | 31da2e3 | 2018-06-24 22:49:55 +0200 | [diff] [blame] | 610 | pass |
“mystarrocks” | 23f0c45 | 2017-12-11 07:11:51 -0800 | [diff] [blame] | 611 | |
| 612 | |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 613 | class TestIpsecEspAsync(TemplateIpsecEsp): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 614 | """Ipsec ESP - Aysnc tests""" |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 615 | |
Klement Sekera | 8d81502 | 2021-03-15 16:58:10 +0100 | [diff] [blame] | 616 | vpp_worker_count = 2 |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 617 | |
| 618 | def setUp(self): |
| 619 | super(TestIpsecEspAsync, self).setUp() |
| 620 | |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 621 | self.p_sync = IPsecIPv4Params() |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 622 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 623 | self.p_sync.crypt_algo_vpp_id = ( |
| 624 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_CBC_256 |
| 625 | ) |
| 626 | self.p_sync.crypt_algo = "AES-CBC" # scapy name |
| 627 | self.p_sync.crypt_key = b"JPjyOWBeVEQiMe7hJPjyOWBeVEQiMe7h" |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 628 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 629 | self.p_sync.scapy_tun_sa_id += 0xF0000 |
| 630 | self.p_sync.scapy_tun_spi += 0xF0000 |
| 631 | self.p_sync.vpp_tun_sa_id += 0xF0000 |
| 632 | self.p_sync.vpp_tun_spi += 0xF0000 |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 633 | self.p_sync.remote_tun_if_host = "2.2.2.2" |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 634 | e = VppEnum.vl_api_ipsec_spd_action_t |
| 635 | |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 636 | self.p_sync.sa = VppIpsecSA( |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 637 | self, |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 638 | self.p_sync.vpp_tun_sa_id, |
| 639 | self.p_sync.vpp_tun_spi, |
| 640 | self.p_sync.auth_algo_vpp_id, |
| 641 | self.p_sync.auth_key, |
| 642 | self.p_sync.crypt_algo_vpp_id, |
| 643 | self.p_sync.crypt_key, |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 644 | self.vpp_esp_protocol, |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 645 | self.tun_if.local_addr[self.p_sync.addr_type], |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 646 | self.tun_if.remote_addr[self.p_sync.addr_type], |
| 647 | ).add_vpp_config() |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 648 | self.p_sync.spd = VppIpsecSpdEntry( |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 649 | self, |
| 650 | self.tun_spd, |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 651 | self.p_sync.vpp_tun_sa_id, |
| 652 | self.pg1.remote_addr[self.p_sync.addr_type], |
| 653 | self.pg1.remote_addr[self.p_sync.addr_type], |
| 654 | self.p_sync.remote_tun_if_host, |
| 655 | self.p_sync.remote_tun_if_host, |
Piotr Bronowski | 815c6a4 | 2022-06-09 09:09:28 +0000 | [diff] [blame] | 656 | socket.IPPROTO_RAW, |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 657 | priority=1, |
| 658 | policy=e.IPSEC_API_SPD_ACTION_PROTECT, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 659 | is_outbound=1, |
| 660 | ).add_vpp_config() |
| 661 | VppIpRoute( |
| 662 | self, |
| 663 | self.p_sync.remote_tun_if_host, |
| 664 | self.p_sync.addr_len, |
| 665 | [VppRoutePath(self.tun_if.remote_addr[self.p_sync.addr_type], 0xFFFFFFFF)], |
| 666 | ).add_vpp_config() |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 667 | config_tun_params(self.p_sync, self.encryption_type, self.tun_if) |
| 668 | |
| 669 | self.p_async = IPsecIPv4Params() |
| 670 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 671 | self.p_async.crypt_algo_vpp_id = ( |
| 672 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_GCM_256 |
| 673 | ) |
| 674 | self.p_async.auth_algo_vpp_id = ( |
| 675 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_NONE |
| 676 | ) |
| 677 | self.p_async.crypt_algo = "AES-GCM" # scapy name |
| 678 | self.p_async.crypt_key = b"JPjyOWBeVEQiMe7hJPjyOWBeVEQiMe7h" |
| 679 | self.p_async.auth_algo = "NULL" |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 680 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 681 | self.p_async.scapy_tun_sa_id += 0xE0000 |
| 682 | self.p_async.scapy_tun_spi += 0xE0000 |
| 683 | self.p_async.vpp_tun_sa_id += 0xE0000 |
| 684 | self.p_async.vpp_tun_spi += 0xE0000 |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 685 | self.p_async.remote_tun_if_host = "2.2.2.3" |
| 686 | |
| 687 | iflags = VppEnum.vl_api_ipsec_sad_flags_t |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 688 | self.p_async.flags = ( |
| 689 | iflags.IPSEC_API_SAD_FLAG_USE_ESN |
| 690 | | iflags.IPSEC_API_SAD_FLAG_USE_ANTI_REPLAY |
| 691 | | iflags.IPSEC_API_SAD_FLAG_ASYNC |
| 692 | ) |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 693 | |
| 694 | self.p_async.sa = VppIpsecSA( |
| 695 | self, |
| 696 | self.p_async.vpp_tun_sa_id, |
| 697 | self.p_async.vpp_tun_spi, |
| 698 | self.p_async.auth_algo_vpp_id, |
| 699 | self.p_async.auth_key, |
| 700 | self.p_async.crypt_algo_vpp_id, |
| 701 | self.p_async.crypt_key, |
| 702 | self.vpp_esp_protocol, |
| 703 | self.tun_if.local_addr[self.p_async.addr_type], |
| 704 | self.tun_if.remote_addr[self.p_async.addr_type], |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 705 | flags=self.p_async.flags, |
| 706 | ).add_vpp_config() |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 707 | self.p_async.spd = VppIpsecSpdEntry( |
| 708 | self, |
| 709 | self.tun_spd, |
| 710 | self.p_async.vpp_tun_sa_id, |
| 711 | self.pg1.remote_addr[self.p_async.addr_type], |
| 712 | self.pg1.remote_addr[self.p_async.addr_type], |
| 713 | self.p_async.remote_tun_if_host, |
| 714 | self.p_async.remote_tun_if_host, |
Piotr Bronowski | 815c6a4 | 2022-06-09 09:09:28 +0000 | [diff] [blame] | 715 | socket.IPPROTO_RAW, |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 716 | priority=2, |
| 717 | policy=e.IPSEC_API_SPD_ACTION_PROTECT, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 718 | is_outbound=1, |
| 719 | ).add_vpp_config() |
| 720 | VppIpRoute( |
| 721 | self, |
| 722 | self.p_async.remote_tun_if_host, |
| 723 | self.p_async.addr_len, |
| 724 | [VppRoutePath(self.tun_if.remote_addr[self.p_async.addr_type], 0xFFFFFFFF)], |
| 725 | ).add_vpp_config() |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 726 | config_tun_params(self.p_async, self.encryption_type, self.tun_if) |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 727 | |
| 728 | def test_dual_stream(self): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 729 | """Alternating SAs""" |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 730 | p = self.params[self.p_sync.addr_type] |
| 731 | self.vapi.ipsec_set_async_mode(async_enable=True) |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 732 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 733 | pkts = [ |
| 734 | ( |
| 735 | Ether(src=self.pg1.remote_mac, dst=self.pg1.local_mac) |
| 736 | / IP(src=self.pg1.remote_ip4, dst=self.p_sync.remote_tun_if_host) |
| 737 | / UDP(sport=4444, dport=4444) |
| 738 | / Raw(b"0x0" * 200) |
| 739 | ), |
| 740 | ( |
| 741 | Ether(src=self.pg1.remote_mac, dst=self.pg1.local_mac) |
| 742 | / IP(src=self.pg1.remote_ip4, dst=p.remote_tun_if_host) |
| 743 | / UDP(sport=4444, dport=4444) |
| 744 | / Raw(b"0x0" * 200) |
| 745 | ), |
| 746 | ] |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 747 | pkts *= 1023 |
| 748 | |
| 749 | rxs = self.send_and_expect(self.pg1, pkts, self.pg0) |
| 750 | |
| 751 | self.assertEqual(len(rxs), len(pkts)) |
| 752 | |
| 753 | for rx in rxs: |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 754 | if rx[ESP].spi == p.vpp_tun_spi: |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 755 | decrypted = p.vpp_tun_sa.decrypt(rx[IP]) |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 756 | elif rx[ESP].spi == self.p_sync.vpp_tun_spi: |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 757 | decrypted = self.p_sync.vpp_tun_sa.decrypt(rx[IP]) |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 758 | else: |
| 759 | rx.show() |
| 760 | self.assertTrue(False) |
| 761 | |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 762 | self.p_sync.spd.remove_vpp_config() |
| 763 | self.p_sync.sa.remove_vpp_config() |
| 764 | self.p_async.spd.remove_vpp_config() |
| 765 | self.p_async.sa.remove_vpp_config() |
| 766 | self.vapi.ipsec_set_async_mode(async_enable=False) |
| 767 | |
| 768 | def test_sync_async_noop_stream(self): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 769 | """Alternating SAs sync/async/noop""" |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 770 | p = self.params[self.p_sync.addr_type] |
| 771 | |
| 772 | # first pin the default/noop SA to worker 0 |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 773 | pkts = [ |
| 774 | ( |
| 775 | Ether(src=self.pg1.remote_mac, dst=self.pg1.local_mac) |
| 776 | / IP(src=self.pg1.remote_ip4, dst=p.remote_tun_if_host) |
| 777 | / UDP(sport=4444, dport=4444) |
| 778 | / Raw(b"0x0" * 200) |
| 779 | ) |
| 780 | ] |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 781 | rxs = self.send_and_expect(self.pg1, pkts, self.pg0, worker=0) |
| 782 | |
| 783 | self.logger.info(self.vapi.cli("sh ipsec sa")) |
| 784 | self.logger.info(self.vapi.cli("sh crypto async status")) |
| 785 | |
| 786 | # then use all the other SAs on worker 1. |
| 787 | # some will handoff, other take the sync and async paths |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 788 | pkts = [ |
| 789 | ( |
| 790 | Ether(src=self.pg1.remote_mac, dst=self.pg1.local_mac) |
| 791 | / IP(src=self.pg1.remote_ip4, dst=self.p_sync.remote_tun_if_host) |
| 792 | / UDP(sport=4444, dport=4444) |
| 793 | / Raw(b"0x0" * 200) |
| 794 | ), |
| 795 | ( |
| 796 | Ether(src=self.pg1.remote_mac, dst=self.pg1.local_mac) |
| 797 | / IP(src=self.pg1.remote_ip4, dst=p.remote_tun_if_host) |
| 798 | / UDP(sport=4444, dport=4444) |
| 799 | / Raw(b"0x0" * 200) |
| 800 | ), |
| 801 | ( |
| 802 | Ether(src=self.pg1.remote_mac, dst=self.pg1.local_mac) |
| 803 | / IP(src=self.pg1.remote_ip4, dst=self.p_async.remote_tun_if_host) |
| 804 | / UDP(sport=4444, dport=4444) |
| 805 | / Raw(b"0x0" * 200) |
| 806 | ), |
| 807 | ] |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 808 | pkts *= 1023 |
| 809 | |
| 810 | rxs = self.send_and_expect(self.pg1, pkts, self.pg0, worker=1) |
| 811 | |
| 812 | self.assertEqual(len(rxs), len(pkts)) |
| 813 | |
| 814 | for rx in rxs: |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 815 | if rx[ESP].spi == p.vpp_tun_spi: |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 816 | decrypted = p.vpp_tun_sa.decrypt(rx[IP]) |
| 817 | elif rx[ESP].spi == self.p_sync.vpp_tun_spi: |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 818 | decrypted = self.p_sync.vpp_tun_sa.decrypt(rx[IP]) |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 819 | elif rx[ESP].spi == self.p_async.vpp_tun_spi: |
Arthur de Kerhor | 0df06b6 | 2022-11-16 18:45:24 +0100 | [diff] [blame] | 820 | decrypted = self.p_async.vpp_tun_sa.decrypt(rx[IP]) |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 821 | else: |
| 822 | rx.show() |
| 823 | self.assertTrue(False) |
| 824 | |
| 825 | self.p_sync.spd.remove_vpp_config() |
| 826 | self.p_sync.sa.remove_vpp_config() |
| 827 | self.p_async.spd.remove_vpp_config() |
| 828 | self.p_async.sa.remove_vpp_config() |
| 829 | |
Neale Ranns | fc81134 | 2021-02-26 10:35:33 +0000 | [diff] [blame] | 830 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 831 | class TestIpsecEspHandoff( |
| 832 | TemplateIpsecEsp, IpsecTun6HandoffTests, IpsecTun4HandoffTests |
| 833 | ): |
| 834 | """Ipsec ESP - handoff tests""" |
| 835 | |
Neale Ranns | 4a56f4e | 2019-12-23 04:10:25 +0000 | [diff] [blame] | 836 | pass |
| 837 | |
| 838 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 839 | class TemplateIpsecEspUdp(ConfigIpsecESP): |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 840 | """ |
| 841 | UDP encapped ESP |
| 842 | """ |
Paul Vinciguerra | 7f9b7f9 | 2019-03-12 19:23:27 -0700 | [diff] [blame] | 843 | |
| 844 | @classmethod |
| 845 | def setUpClass(cls): |
| 846 | super(TemplateIpsecEspUdp, cls).setUpClass() |
| 847 | |
| 848 | @classmethod |
| 849 | def tearDownClass(cls): |
| 850 | super(TemplateIpsecEspUdp, cls).tearDownClass() |
| 851 | |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 852 | def setUp(self): |
| 853 | super(TemplateIpsecEspUdp, self).setUp() |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 854 | self.net_objs = [] |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 855 | self.tun_if = self.pg0 |
| 856 | self.tra_if = self.pg2 |
| 857 | self.logger.info(self.vapi.ppcli("show int addr")) |
| 858 | |
| 859 | p = self.ipv4_params |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 860 | p.flags = ( |
| 861 | VppEnum.vl_api_ipsec_sad_flags_t.IPSEC_API_SAD_FLAG_UDP_ENCAP |
| 862 | | VppEnum.vl_api_ipsec_sad_flags_t.IPSEC_API_SAD_FLAG_USE_ANTI_REPLAY |
| 863 | ) |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 864 | p.nat_header = UDP(sport=5454, dport=4500) |
| 865 | |
| 866 | self.tra_spd = VppIpsecSpd(self, self.tra_spd_id) |
| 867 | self.tra_spd.add_vpp_config() |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 868 | VppIpsecSpdItfBinding(self, self.tra_spd, self.tra_if).add_vpp_config() |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 869 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 870 | self.config_esp_tra(p) |
Neale Ranns | 2ac885c | 2019-03-20 18:24:43 +0000 | [diff] [blame] | 871 | config_tra_params(p, self.encryption_type) |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 872 | |
| 873 | self.tun_spd = VppIpsecSpd(self, self.tun_spd_id) |
| 874 | self.tun_spd.add_vpp_config() |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 875 | VppIpsecSpdItfBinding(self, self.tun_spd, self.tun_if).add_vpp_config() |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 876 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 877 | self.config_esp_tun(p) |
Neale Ranns | 92e9384 | 2019-04-08 07:36:50 +0000 | [diff] [blame] | 878 | self.logger.info(self.vapi.ppcli("show ipsec all")) |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 879 | |
| 880 | d = DpoProto.DPO_PROTO_IP4 |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 881 | VppIpRoute( |
| 882 | self, |
| 883 | p.remote_tun_if_host, |
| 884 | p.addr_len, |
| 885 | [VppRoutePath(self.tun_if.remote_addr[p.addr_type], 0xFFFFFFFF, proto=d)], |
| 886 | ).add_vpp_config() |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 887 | |
| 888 | def tearDown(self): |
| 889 | super(TemplateIpsecEspUdp, self).tearDown() |
Paul Vinciguerra | 90cf21b | 2019-03-13 09:23:05 -0700 | [diff] [blame] | 890 | |
| 891 | def show_commands_at_teardown(self): |
| 892 | self.logger.info(self.vapi.cli("show hardware")) |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 893 | |
| 894 | |
Neale Ranns | 49e7ef6 | 2019-04-10 17:24:29 +0000 | [diff] [blame] | 895 | class TestIpsecEspUdp(TemplateIpsecEspUdp, IpsecTra4Tests): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 896 | """Ipsec NAT-T ESP UDP tests""" |
| 897 | |
Neale Ranns | 53f526b | 2019-02-25 14:32:02 +0000 | [diff] [blame] | 898 | pass |
| 899 | |
| 900 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 901 | class MyParameters: |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 902 | def __init__(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 903 | saf = VppEnum.vl_api_ipsec_sad_flags_t |
| 904 | flag_esn = saf.IPSEC_API_SAD_FLAG_USE_ESN |
| 905 | flag_ar = saf.IPSEC_API_SAD_FLAG_USE_ANTI_REPLAY |
| 906 | self.flags = [0, flag_esn, flag_ar] |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 907 | # foreach crypto algorithm |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 908 | self.algos = { |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 909 | "AES-GCM-128/NONE": { |
| 910 | "vpp-crypto": ( |
| 911 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_GCM_128 |
| 912 | ), |
| 913 | "vpp-integ": ( |
| 914 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_NONE |
| 915 | ), |
| 916 | "scapy-crypto": "AES-GCM", |
| 917 | "scapy-integ": "NULL", |
| 918 | "key": b"JPjyOWBeVEQiMe7h", |
| 919 | "salt": 0, |
| 920 | }, |
| 921 | "AES-GCM-192/NONE": { |
| 922 | "vpp-crypto": ( |
| 923 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_GCM_192 |
| 924 | ), |
| 925 | "vpp-integ": ( |
| 926 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_NONE |
| 927 | ), |
| 928 | "scapy-crypto": "AES-GCM", |
| 929 | "scapy-integ": "NULL", |
| 930 | "key": b"JPjyOWBeVEQiMe7h01234567", |
| 931 | "salt": 1010, |
| 932 | }, |
| 933 | "AES-GCM-256/NONE": { |
| 934 | "vpp-crypto": ( |
| 935 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_GCM_256 |
| 936 | ), |
| 937 | "vpp-integ": ( |
| 938 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_NONE |
| 939 | ), |
| 940 | "scapy-crypto": "AES-GCM", |
| 941 | "scapy-integ": "NULL", |
| 942 | "key": b"JPjyOWBeVEQiMe7h0123456787654321", |
| 943 | "salt": 2020, |
| 944 | }, |
| 945 | "AES-CBC-128/MD5-96": { |
| 946 | "vpp-crypto": ( |
| 947 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_CBC_128 |
| 948 | ), |
| 949 | "vpp-integ": ( |
| 950 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_MD5_96 |
| 951 | ), |
| 952 | "scapy-crypto": "AES-CBC", |
| 953 | "scapy-integ": "HMAC-MD5-96", |
| 954 | "salt": 0, |
| 955 | "key": b"JPjyOWBeVEQiMe7h", |
| 956 | }, |
| 957 | "AES-CBC-192/SHA1-96": { |
| 958 | "vpp-crypto": ( |
| 959 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_CBC_192 |
| 960 | ), |
| 961 | "vpp-integ": ( |
| 962 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_SHA1_96 |
| 963 | ), |
| 964 | "scapy-crypto": "AES-CBC", |
| 965 | "scapy-integ": "HMAC-SHA1-96", |
| 966 | "salt": 0, |
| 967 | "key": b"JPjyOWBeVEQiMe7hJPjyOWBe", |
| 968 | }, |
| 969 | "AES-CBC-256/SHA1-96": { |
| 970 | "vpp-crypto": ( |
| 971 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_CBC_256 |
| 972 | ), |
| 973 | "vpp-integ": ( |
| 974 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_SHA1_96 |
| 975 | ), |
| 976 | "scapy-crypto": "AES-CBC", |
| 977 | "scapy-integ": "HMAC-SHA1-96", |
| 978 | "salt": 0, |
| 979 | "key": b"JPjyOWBeVEQiMe7hJPjyOWBeVEQiMe7h", |
| 980 | }, |
| 981 | "3DES-CBC/SHA1-96": { |
| 982 | "vpp-crypto": ( |
| 983 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_3DES_CBC |
| 984 | ), |
| 985 | "vpp-integ": ( |
| 986 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_SHA1_96 |
| 987 | ), |
| 988 | "scapy-crypto": "3DES", |
| 989 | "scapy-integ": "HMAC-SHA1-96", |
| 990 | "salt": 0, |
| 991 | "key": b"JPjyOWBeVEQiMe7h00112233", |
| 992 | }, |
| 993 | "NONE/SHA1-96": { |
| 994 | "vpp-crypto": ( |
| 995 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_NONE |
| 996 | ), |
| 997 | "vpp-integ": ( |
| 998 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_SHA1_96 |
| 999 | ), |
| 1000 | "scapy-crypto": "NULL", |
| 1001 | "scapy-integ": "HMAC-SHA1-96", |
| 1002 | "salt": 0, |
| 1003 | "key": b"JPjyOWBeVEQiMe7h00112233", |
| 1004 | }, |
| 1005 | "AES-CTR-128/SHA1-96": { |
| 1006 | "vpp-crypto": ( |
| 1007 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_CTR_128 |
| 1008 | ), |
| 1009 | "vpp-integ": ( |
| 1010 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_SHA1_96 |
| 1011 | ), |
| 1012 | "scapy-crypto": "AES-CTR", |
| 1013 | "scapy-integ": "HMAC-SHA1-96", |
| 1014 | "salt": 0, |
| 1015 | "key": b"JPjyOWBeVEQiMe7h", |
| 1016 | }, |
| 1017 | "AES-CTR-192/SHA1-96": { |
| 1018 | "vpp-crypto": ( |
| 1019 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_CTR_192 |
| 1020 | ), |
| 1021 | "vpp-integ": ( |
| 1022 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_SHA1_96 |
| 1023 | ), |
| 1024 | "scapy-crypto": "AES-CTR", |
| 1025 | "scapy-integ": "HMAC-SHA1-96", |
| 1026 | "salt": 1010, |
| 1027 | "key": b"JPjyOWBeVEQiMe7hJPjyOWBe", |
| 1028 | }, |
| 1029 | "AES-CTR-256/SHA1-96": { |
| 1030 | "vpp-crypto": ( |
| 1031 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_CTR_256 |
| 1032 | ), |
| 1033 | "vpp-integ": ( |
| 1034 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_SHA1_96 |
| 1035 | ), |
| 1036 | "scapy-crypto": "AES-CTR", |
| 1037 | "scapy-integ": "HMAC-SHA1-96", |
| 1038 | "salt": 2020, |
| 1039 | "key": b"JPjyOWBeVEQiMe7hJPjyOWBeVEQiMe7h", |
| 1040 | }, |
Benoît Ganne | 84e6658 | 2023-03-10 17:33:03 +0100 | [diff] [blame] | 1041 | "AES-NULL-GMAC-128/NONE": { |
| 1042 | "vpp-crypto": ( |
| 1043 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_128 |
| 1044 | ), |
| 1045 | "vpp-integ": ( |
| 1046 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_NONE |
| 1047 | ), |
| 1048 | "scapy-crypto": "AES-NULL-GMAC", |
| 1049 | "scapy-integ": "NULL", |
| 1050 | "key": b"JPjyOWBeVEQiMe7h", |
| 1051 | "salt": 0, |
| 1052 | }, |
| 1053 | "AES-NULL-GMAC-192/NONE": { |
| 1054 | "vpp-crypto": ( |
| 1055 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_192 |
| 1056 | ), |
| 1057 | "vpp-integ": ( |
| 1058 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_NONE |
| 1059 | ), |
| 1060 | "scapy-crypto": "AES-NULL-GMAC", |
| 1061 | "scapy-integ": "NULL", |
| 1062 | "key": b"JPjyOWBeVEQiMe7h01234567", |
| 1063 | "salt": 1010, |
| 1064 | }, |
| 1065 | "AES-NULL-GMAC-256/NONE": { |
| 1066 | "vpp-crypto": ( |
| 1067 | VppEnum.vl_api_ipsec_crypto_alg_t.IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_256 |
| 1068 | ), |
| 1069 | "vpp-integ": ( |
| 1070 | VppEnum.vl_api_ipsec_integ_alg_t.IPSEC_API_INTEG_ALG_NONE |
| 1071 | ), |
| 1072 | "scapy-crypto": "AES-NULL-GMAC", |
| 1073 | "scapy-integ": "NULL", |
| 1074 | "key": b"JPjyOWBeVEQiMe7h0123456787654321", |
| 1075 | "salt": 2020, |
| 1076 | }, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1077 | } |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 1078 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 1079 | |
Dmitry Valter | 34fa0ce | 2024-03-11 10:38:46 +0000 | [diff] [blame] | 1080 | @unittest.skipIf( |
| 1081 | "ping" in config.excluded_plugins, "Exclude tests requiring Ping plugin" |
| 1082 | ) |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1083 | class RunTestIpsecEspAll(ConfigIpsecESP, IpsecTra4, IpsecTra6, IpsecTun4, IpsecTun6): |
| 1084 | """Ipsec ESP all Algos""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1085 | |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1086 | @classmethod |
| 1087 | def setUpConstants(cls): |
| 1088 | test_args = str.split(cls.__doc__, " ") |
| 1089 | engine = test_args[0] |
| 1090 | if engine == "async": |
Klement Sekera | 8d81502 | 2021-03-15 16:58:10 +0100 | [diff] [blame] | 1091 | cls.vpp_worker_count = 2 |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1092 | super(RunTestIpsecEspAll, cls).setUpConstants() |
| 1093 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1094 | def setUp(self): |
| 1095 | super(RunTestIpsecEspAll, self).setUp() |
| 1096 | test_args = str.split(self.__doc__, " ") |
| 1097 | |
| 1098 | params = MyParameters() |
| 1099 | self.engine = test_args[0] |
| 1100 | self.flag = params.flags[0] |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1101 | if test_args[1] == "ESNon": |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1102 | self.flag |= params.flags[1] |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1103 | if test_args[2] == "ARon": |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1104 | self.flag |= params.flags[2] |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1105 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1106 | self.algo = params.algos[test_args[3]] |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1107 | self.async_mode = False |
| 1108 | if self.engine == "async": |
| 1109 | self.async_mode = True |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1110 | |
| 1111 | def tearDown(self): |
| 1112 | super(RunTestIpsecEspAll, self).tearDown() |
| 1113 | |
| 1114 | def run_test(self): |
| 1115 | self.run_a_test(self.engine, self.flag, self.algo) |
| 1116 | |
Filip Tehlar | efcad1a | 2020-02-04 09:36:04 +0000 | [diff] [blame] | 1117 | def run_a_test(self, engine, flag, algo, payload_size=None): |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1118 | if self.async_mode: |
| 1119 | self.vapi.cli("set ipsec async mode on") |
| 1120 | else: |
| 1121 | self.vapi.cli("set crypto handler all %s" % engine) |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1122 | |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1123 | self.logger.info(self.vapi.cli("show crypto async status")) |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1124 | self.ipv4_params = IPsecIPv4Params() |
| 1125 | self.ipv6_params = IPsecIPv6Params() |
| 1126 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1127 | self.params = { |
| 1128 | self.ipv4_params.addr_type: self.ipv4_params, |
| 1129 | self.ipv6_params.addr_type: self.ipv6_params, |
| 1130 | } |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1131 | |
| 1132 | for _, p in self.params.items(): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1133 | p.auth_algo_vpp_id = algo["vpp-integ"] |
| 1134 | p.crypt_algo_vpp_id = algo["vpp-crypto"] |
| 1135 | p.crypt_algo = algo["scapy-crypto"] |
| 1136 | p.auth_algo = algo["scapy-integ"] |
| 1137 | p.crypt_key = algo["key"] |
| 1138 | p.salt = algo["salt"] |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1139 | p.flags = flag |
Neale Ranns | 9ec846c | 2021-02-09 14:04:02 +0000 | [diff] [blame] | 1140 | p.outer_flow_label = 243224 |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1141 | p.async_mode = self.async_mode |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1142 | |
| 1143 | self.reporter.send_keep_alive(self) |
| 1144 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 1145 | # |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1146 | # configure the SPDs. SAs, etc |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 1147 | # |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1148 | self.config_network(self.params.values()) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 1149 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1150 | # |
| 1151 | # run some traffic. |
| 1152 | # An exhautsive 4o6, 6o4 is not necessary |
| 1153 | # for each algo |
| 1154 | # |
| 1155 | self.verify_tra_basic6(count=NUM_PKTS) |
| 1156 | self.verify_tra_basic4(count=NUM_PKTS) |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1157 | self.verify_tun_66(self.params[socket.AF_INET6], count=NUM_PKTS) |
Christian Hopps | fb7e7ed | 2019-11-03 07:02:15 -0500 | [diff] [blame] | 1158 | # |
| 1159 | # Use an odd-byte payload size to check for correct padding. |
| 1160 | # |
| 1161 | # 49 + 2 == 51 which should pad +1 to 52 for 4 byte alignment, +5 |
| 1162 | # to 56 for 8 byte alignment, and +13 to 64 for 64 byte alignment. |
| 1163 | # This should catch bugs where the code is incorrectly over-padding |
| 1164 | # for algorithms that don't require it |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1165 | psz = 49 - len(IP() / ICMP()) if payload_size is None else payload_size |
| 1166 | self.verify_tun_44( |
| 1167 | self.params[socket.AF_INET], count=NUM_PKTS, payload_size=psz |
| 1168 | ) |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 1169 | |
Filip Tehlar | efcad1a | 2020-02-04 09:36:04 +0000 | [diff] [blame] | 1170 | LARGE_PKT_SZ = [ |
Filip Tehlar | e4e8c6b | 2020-02-13 07:49:30 +0000 | [diff] [blame] | 1171 | 1970, # results in 2 chained buffers entering decrypt node |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1172 | # but leaving as simple buffer due to ICV removal (tra4) |
PiotrX Kleski | fdca4dd | 2020-05-05 14:14:22 +0200 | [diff] [blame] | 1173 | 2004, # footer+ICV will be added to 2nd buffer (tun4) |
Nathan Skrzypczak | 2c77ae4 | 2021-09-29 15:36:51 +0200 | [diff] [blame] | 1174 | 4010, # ICV ends up splitted across 2 buffers in esp_decrypt |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1175 | # for transport4; transport6 takes normal path |
Filip Tehlar | efcad1a | 2020-02-04 09:36:04 +0000 | [diff] [blame] | 1176 | 4020, # same as above but tra4 and tra6 are switched |
| 1177 | ] |
| 1178 | if self.engine in engines_supporting_chain_bufs: |
| 1179 | for sz in LARGE_PKT_SZ: |
| 1180 | self.verify_tra_basic4(count=NUM_PKTS, payload_size=sz) |
| 1181 | self.verify_tra_basic6(count=NUM_PKTS, payload_size=sz) |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1182 | self.verify_tun_66( |
| 1183 | self.params[socket.AF_INET6], count=NUM_PKTS, payload_size=sz |
| 1184 | ) |
| 1185 | self.verify_tun_44( |
| 1186 | self.params[socket.AF_INET], count=NUM_PKTS, payload_size=sz |
| 1187 | ) |
Filip Tehlar | efcad1a | 2020-02-04 09:36:04 +0000 | [diff] [blame] | 1188 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1189 | # |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1190 | # reconfigure the network and SA to run the |
| 1191 | # anti replay tests |
| 1192 | # |
| 1193 | saf = VppEnum.vl_api_ipsec_sad_flags_t |
| 1194 | if flag & saf.IPSEC_API_SAD_FLAG_USE_ANTI_REPLAY: |
Maxime Peim | 0e2f188 | 2022-12-22 11:26:57 +0000 | [diff] [blame] | 1195 | for anti_replay_window_size in ( |
| 1196 | 64, |
| 1197 | 131072, |
| 1198 | ): |
| 1199 | self.unconfig_network() |
| 1200 | self.config_anti_replay(self.params.values(), anti_replay_window_size) |
| 1201 | self.config_network(self.params.values()) |
| 1202 | self.verify_tra_anti_replay() |
| 1203 | self.verify_tra_anti_replay_algorithm() |
| 1204 | self.config_anti_replay(self.params.values()) |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1205 | |
| 1206 | self.unconfig_network() |
| 1207 | self.config_network(self.params.values()) |
| 1208 | self.verify_hi_seq_num() |
Neale Ranns | e11203e | 2021-09-21 12:34:19 +0000 | [diff] [blame] | 1209 | self.unconfig_network() |
| 1210 | self.config_network(self.params.values()) |
| 1211 | self.verify_tra_lost() |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1212 | |
| 1213 | # |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 1214 | # swap the handlers while SAs are up |
| 1215 | # |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1216 | self.unconfig_network() |
| 1217 | self.config_network(self.params.values()) |
Neale Ranns | f16e9a5 | 2021-02-25 19:09:24 +0000 | [diff] [blame] | 1218 | for e in engines: |
| 1219 | if e != engine: |
| 1220 | self.vapi.cli("set crypto handler all %s" % e) |
| 1221 | self.verify_tra_basic4(count=NUM_PKTS) |
| 1222 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1223 | self.unconfig_network() |
juraj.linkes | 1105766 | 2019-07-08 10:22:55 +0200 | [diff] [blame] | 1224 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1225 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1226 | # |
| 1227 | # To generate test classes, do: |
| 1228 | # grep '# GEN' test_ipsec_esp.py | sed -e 's/# GEN //g' | bash |
| 1229 | # |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1230 | # GEN for ENG in native ipsecmb openssl; do \ |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1231 | # GEN for ESN in ESNon ESNoff; do for AR in ARon ARoff; do \ |
| 1232 | # GEN for ALG in AES-GCM-128/NONE \ |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1233 | # GEN AES-GCM-192/NONE AES-GCM-256/NONE AES-CBC-128/MD5-96 \ |
| 1234 | # GEN AES-CBC-192/SHA1-96 AES-CBC-256/SHA1-96 \ |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 1235 | # GEN 3DES-CBC/SHA1-96 NONE/SHA1-96 \ |
Benoît Ganne | 84e6658 | 2023-03-10 17:33:03 +0100 | [diff] [blame] | 1236 | # GEN AES-CTR-128/SHA1-96 AES-CTR-192/SHA1-96 AES-CTR-256/SHA1-96 \ |
| 1237 | # GEN AES-NULL-GMAC-128/NONE AES-NULL-GMAC-192/NONE AES-NULL-GMAC-256/NONE; do \ |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1238 | # GEN echo -en "\n\nclass " |
| 1239 | # GEN echo -e "Test_${ENG}_${ESN}_${AR}_${ALG}(RunTestIpsecEspAll):" | |
| 1240 | # GEN sed -e 's/-/_/g' -e 's#/#_#g' ; |
| 1241 | # GEN echo ' """'$ENG $ESN $AR $ALG IPSec test'"""' ; |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1242 | # GEN echo " def test_ipsec(self):"; |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1243 | # GEN echo ' """'$ENG $ESN $AR $ALG IPSec test'"""' ; |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1244 | # GEN echo " self.run_test()"; |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1245 | # GEN done; done; done; done |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1246 | # |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1247 | # GEN for ESN in ESNon ESNoff; do for AR in ARon ARoff; do \ |
| 1248 | # GEN for ALG in \ |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1249 | # GEN AES-GCM-128/NONE AES-GCM-192/NONE AES-GCM-256/NONE \ |
| 1250 | # GEN AES-CBC-192/SHA1-96 AES-CBC-256/SHA1-96; do \ |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1251 | # GEN echo -en "\n\nclass " |
| 1252 | # GEN echo -e "Test_async_${ESN}_${AR}_${ALG}(RunTestIpsecEspAll):" | |
| 1253 | # GEN sed -e 's/-/_/g' -e 's#/#_#g' ; |
| 1254 | # GEN echo ' """'async $ESN $AR $ALG IPSec test'"""' ; |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1255 | # GEN echo " def test_ipsec(self):"; |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1256 | # GEN echo ' """'async $ESN $AR $ALG IPSec test'"""' ; |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 1257 | # GEN echo " self.run_test()"; |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1258 | # GEN done; done; done; |
| 1259 | |
| 1260 | |
| 1261 | class Test_native_ESNon_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 1262 | """native ESNon ARon AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1263 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1264 | def test_ipsec(self): |
| 1265 | """native ESNon ARon AES-GCM-128/NONE IPSec test""" |
| 1266 | self.run_test() |
| 1267 | |
| 1268 | |
| 1269 | class Test_native_ESNon_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 1270 | """native ESNon ARon AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1271 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1272 | def test_ipsec(self): |
| 1273 | """native ESNon ARon AES-GCM-192/NONE IPSec test""" |
| 1274 | self.run_test() |
| 1275 | |
| 1276 | |
| 1277 | class Test_native_ESNon_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 1278 | """native ESNon ARon AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1279 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1280 | def test_ipsec(self): |
| 1281 | """native ESNon ARon AES-GCM-256/NONE IPSec test""" |
| 1282 | self.run_test() |
| 1283 | |
| 1284 | |
| 1285 | class Test_native_ESNon_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 1286 | """native ESNon ARon AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1287 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1288 | def test_ipsec(self): |
| 1289 | """native ESNon ARon AES-CBC-128/MD5-96 IPSec test""" |
| 1290 | self.run_test() |
| 1291 | |
| 1292 | |
| 1293 | class Test_native_ESNon_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 1294 | """native ESNon ARon AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1295 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1296 | def test_ipsec(self): |
| 1297 | """native ESNon ARon AES-CBC-192/SHA1-96 IPSec test""" |
| 1298 | self.run_test() |
| 1299 | |
| 1300 | |
| 1301 | class Test_native_ESNon_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 1302 | """native ESNon ARon AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1303 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1304 | def test_ipsec(self): |
| 1305 | """native ESNon ARon AES-CBC-256/SHA1-96 IPSec test""" |
| 1306 | self.run_test() |
| 1307 | |
| 1308 | |
| 1309 | class Test_native_ESNon_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 1310 | """native ESNon ARon 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1311 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1312 | def test_ipsec(self): |
| 1313 | """native ESNon ARon 3DES-CBC/SHA1-96 IPSec test""" |
| 1314 | self.run_test() |
| 1315 | |
| 1316 | |
| 1317 | class Test_native_ESNon_ARon_NONE_SHA1_96(RunTestIpsecEspAll): |
| 1318 | """native ESNon ARon NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1319 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1320 | def test_ipsec(self): |
| 1321 | """native ESNon ARon NONE/SHA1-96 IPSec test""" |
| 1322 | self.run_test() |
| 1323 | |
| 1324 | |
| 1325 | class Test_native_ESNon_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 1326 | """native ESNon ARon AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1327 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1328 | def test_ipsec(self): |
| 1329 | """native ESNon ARon AES-CTR-128/SHA1-96 IPSec test""" |
| 1330 | self.run_test() |
| 1331 | |
| 1332 | |
| 1333 | class Test_native_ESNon_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 1334 | """native ESNon ARon AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1335 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1336 | def test_ipsec(self): |
| 1337 | """native ESNon ARon AES-CTR-192/SHA1-96 IPSec test""" |
| 1338 | self.run_test() |
| 1339 | |
| 1340 | |
| 1341 | class Test_native_ESNon_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 1342 | """native ESNon ARon AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1343 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1344 | def test_ipsec(self): |
| 1345 | """native ESNon ARon AES-CTR-256/SHA1-96 IPSec test""" |
| 1346 | self.run_test() |
| 1347 | |
| 1348 | |
| 1349 | class Test_native_ESNon_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 1350 | """native ESNon ARoff AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1351 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1352 | def test_ipsec(self): |
| 1353 | """native ESNon ARoff AES-GCM-128/NONE IPSec test""" |
| 1354 | self.run_test() |
| 1355 | |
| 1356 | |
| 1357 | class Test_native_ESNon_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 1358 | """native ESNon ARoff AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1359 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1360 | def test_ipsec(self): |
| 1361 | """native ESNon ARoff AES-GCM-192/NONE IPSec test""" |
| 1362 | self.run_test() |
| 1363 | |
| 1364 | |
| 1365 | class Test_native_ESNon_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 1366 | """native ESNon ARoff AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1367 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1368 | def test_ipsec(self): |
| 1369 | """native ESNon ARoff AES-GCM-256/NONE IPSec test""" |
| 1370 | self.run_test() |
| 1371 | |
| 1372 | |
| 1373 | class Test_native_ESNon_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 1374 | """native ESNon ARoff AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1375 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1376 | def test_ipsec(self): |
| 1377 | """native ESNon ARoff AES-CBC-128/MD5-96 IPSec test""" |
| 1378 | self.run_test() |
| 1379 | |
| 1380 | |
| 1381 | class Test_native_ESNon_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 1382 | """native ESNon ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1383 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1384 | def test_ipsec(self): |
| 1385 | """native ESNon ARoff AES-CBC-192/SHA1-96 IPSec test""" |
| 1386 | self.run_test() |
| 1387 | |
| 1388 | |
| 1389 | class Test_native_ESNon_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 1390 | """native ESNon ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1391 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1392 | def test_ipsec(self): |
| 1393 | """native ESNon ARoff AES-CBC-256/SHA1-96 IPSec test""" |
| 1394 | self.run_test() |
| 1395 | |
| 1396 | |
| 1397 | class Test_native_ESNon_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 1398 | """native ESNon ARoff 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1399 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1400 | def test_ipsec(self): |
| 1401 | """native ESNon ARoff 3DES-CBC/SHA1-96 IPSec test""" |
| 1402 | self.run_test() |
| 1403 | |
| 1404 | |
| 1405 | class Test_native_ESNon_ARoff_NONE_SHA1_96(RunTestIpsecEspAll): |
| 1406 | """native ESNon ARoff NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1407 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1408 | def test_ipsec(self): |
| 1409 | """native ESNon ARoff NONE/SHA1-96 IPSec test""" |
| 1410 | self.run_test() |
| 1411 | |
| 1412 | |
| 1413 | class Test_native_ESNon_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 1414 | """native ESNon ARoff AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1415 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1416 | def test_ipsec(self): |
| 1417 | """native ESNon ARoff AES-CTR-128/SHA1-96 IPSec test""" |
| 1418 | self.run_test() |
| 1419 | |
| 1420 | |
| 1421 | class Test_native_ESNon_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 1422 | """native ESNon ARoff AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1423 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1424 | def test_ipsec(self): |
| 1425 | """native ESNon ARoff AES-CTR-192/SHA1-96 IPSec test""" |
| 1426 | self.run_test() |
| 1427 | |
| 1428 | |
| 1429 | class Test_native_ESNon_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 1430 | """native ESNon ARoff AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1431 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1432 | def test_ipsec(self): |
| 1433 | """native ESNon ARoff AES-CTR-256/SHA1-96 IPSec test""" |
| 1434 | self.run_test() |
| 1435 | |
| 1436 | |
| 1437 | class Test_native_ESNoff_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 1438 | """native ESNoff ARon AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1439 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1440 | def test_ipsec(self): |
| 1441 | """native ESNoff ARon AES-GCM-128/NONE IPSec test""" |
| 1442 | self.run_test() |
| 1443 | |
| 1444 | |
| 1445 | class Test_native_ESNoff_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 1446 | """native ESNoff ARon AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1447 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1448 | def test_ipsec(self): |
| 1449 | """native ESNoff ARon AES-GCM-192/NONE IPSec test""" |
| 1450 | self.run_test() |
| 1451 | |
| 1452 | |
| 1453 | class Test_native_ESNoff_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 1454 | """native ESNoff ARon AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1455 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1456 | def test_ipsec(self): |
| 1457 | """native ESNoff ARon AES-GCM-256/NONE IPSec test""" |
| 1458 | self.run_test() |
| 1459 | |
| 1460 | |
| 1461 | class Test_native_ESNoff_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 1462 | """native ESNoff ARon AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1463 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1464 | def test_ipsec(self): |
| 1465 | """native ESNoff ARon AES-CBC-128/MD5-96 IPSec test""" |
| 1466 | self.run_test() |
| 1467 | |
| 1468 | |
| 1469 | class Test_native_ESNoff_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 1470 | """native ESNoff ARon AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1471 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1472 | def test_ipsec(self): |
| 1473 | """native ESNoff ARon AES-CBC-192/SHA1-96 IPSec test""" |
| 1474 | self.run_test() |
| 1475 | |
| 1476 | |
| 1477 | class Test_native_ESNoff_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 1478 | """native ESNoff ARon AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1479 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1480 | def test_ipsec(self): |
| 1481 | """native ESNoff ARon AES-CBC-256/SHA1-96 IPSec test""" |
| 1482 | self.run_test() |
| 1483 | |
| 1484 | |
| 1485 | class Test_native_ESNoff_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 1486 | """native ESNoff ARon 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1487 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1488 | def test_ipsec(self): |
| 1489 | """native ESNoff ARon 3DES-CBC/SHA1-96 IPSec test""" |
| 1490 | self.run_test() |
| 1491 | |
| 1492 | |
| 1493 | class Test_native_ESNoff_ARon_NONE_SHA1_96(RunTestIpsecEspAll): |
| 1494 | """native ESNoff ARon NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1495 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1496 | def test_ipsec(self): |
| 1497 | """native ESNoff ARon NONE/SHA1-96 IPSec test""" |
| 1498 | self.run_test() |
| 1499 | |
| 1500 | |
| 1501 | class Test_native_ESNoff_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 1502 | """native ESNoff ARon AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1503 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1504 | def test_ipsec(self): |
| 1505 | """native ESNoff ARon AES-CTR-128/SHA1-96 IPSec test""" |
| 1506 | self.run_test() |
| 1507 | |
| 1508 | |
| 1509 | class Test_native_ESNoff_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 1510 | """native ESNoff ARon AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1511 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1512 | def test_ipsec(self): |
| 1513 | """native ESNoff ARon AES-CTR-192/SHA1-96 IPSec test""" |
| 1514 | self.run_test() |
| 1515 | |
| 1516 | |
| 1517 | class Test_native_ESNoff_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 1518 | """native ESNoff ARon AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1519 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1520 | def test_ipsec(self): |
| 1521 | """native ESNoff ARon AES-CTR-256/SHA1-96 IPSec test""" |
| 1522 | self.run_test() |
| 1523 | |
| 1524 | |
| 1525 | class Test_native_ESNoff_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 1526 | """native ESNoff ARoff AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1527 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1528 | def test_ipsec(self): |
| 1529 | """native ESNoff ARoff AES-GCM-128/NONE IPSec test""" |
| 1530 | self.run_test() |
| 1531 | |
| 1532 | |
| 1533 | class Test_native_ESNoff_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 1534 | """native ESNoff ARoff AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1535 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1536 | def test_ipsec(self): |
| 1537 | """native ESNoff ARoff AES-GCM-192/NONE IPSec test""" |
| 1538 | self.run_test() |
| 1539 | |
| 1540 | |
| 1541 | class Test_native_ESNoff_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 1542 | """native ESNoff ARoff AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1543 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1544 | def test_ipsec(self): |
| 1545 | """native ESNoff ARoff AES-GCM-256/NONE IPSec test""" |
| 1546 | self.run_test() |
| 1547 | |
| 1548 | |
| 1549 | class Test_native_ESNoff_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 1550 | """native ESNoff ARoff AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1551 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1552 | def test_ipsec(self): |
| 1553 | """native ESNoff ARoff AES-CBC-128/MD5-96 IPSec test""" |
| 1554 | self.run_test() |
| 1555 | |
| 1556 | |
| 1557 | class Test_native_ESNoff_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 1558 | """native ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1559 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1560 | def test_ipsec(self): |
| 1561 | """native ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test""" |
| 1562 | self.run_test() |
| 1563 | |
| 1564 | |
| 1565 | class Test_native_ESNoff_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 1566 | """native ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1567 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1568 | def test_ipsec(self): |
| 1569 | """native ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test""" |
| 1570 | self.run_test() |
| 1571 | |
| 1572 | |
| 1573 | class Test_native_ESNoff_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 1574 | """native ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1575 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1576 | def test_ipsec(self): |
| 1577 | """native ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test""" |
| 1578 | self.run_test() |
| 1579 | |
| 1580 | |
| 1581 | class Test_native_ESNoff_ARoff_NONE_SHA1_96(RunTestIpsecEspAll): |
| 1582 | """native ESNoff ARoff NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1583 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1584 | def test_ipsec(self): |
| 1585 | """native ESNoff ARoff NONE/SHA1-96 IPSec test""" |
| 1586 | self.run_test() |
| 1587 | |
| 1588 | |
| 1589 | class Test_native_ESNoff_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 1590 | """native ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1591 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1592 | def test_ipsec(self): |
| 1593 | """native ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test""" |
| 1594 | self.run_test() |
| 1595 | |
| 1596 | |
| 1597 | class Test_native_ESNoff_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 1598 | """native ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1599 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1600 | def test_ipsec(self): |
| 1601 | """native ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test""" |
| 1602 | self.run_test() |
| 1603 | |
| 1604 | |
| 1605 | class Test_native_ESNoff_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 1606 | """native ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1607 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1608 | def test_ipsec(self): |
| 1609 | """native ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test""" |
| 1610 | self.run_test() |
| 1611 | |
| 1612 | |
| 1613 | class Test_ipsecmb_ESNon_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 1614 | """ipsecmb ESNon ARon AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1615 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1616 | def test_ipsec(self): |
| 1617 | """ipsecmb ESNon ARon AES-GCM-128/NONE IPSec test""" |
| 1618 | self.run_test() |
| 1619 | |
| 1620 | |
| 1621 | class Test_ipsecmb_ESNon_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 1622 | """ipsecmb ESNon ARon AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1623 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1624 | def test_ipsec(self): |
| 1625 | """ipsecmb ESNon ARon AES-GCM-192/NONE IPSec test""" |
| 1626 | self.run_test() |
| 1627 | |
| 1628 | |
| 1629 | class Test_ipsecmb_ESNon_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 1630 | """ipsecmb ESNon ARon AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1631 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1632 | def test_ipsec(self): |
| 1633 | """ipsecmb ESNon ARon AES-GCM-256/NONE IPSec test""" |
| 1634 | self.run_test() |
| 1635 | |
| 1636 | |
| 1637 | class Test_ipsecmb_ESNon_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 1638 | """ipsecmb ESNon ARon AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1639 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1640 | def test_ipsec(self): |
| 1641 | """ipsecmb ESNon ARon AES-CBC-128/MD5-96 IPSec test""" |
| 1642 | self.run_test() |
| 1643 | |
| 1644 | |
| 1645 | class Test_ipsecmb_ESNon_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 1646 | """ipsecmb ESNon ARon AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1647 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1648 | def test_ipsec(self): |
| 1649 | """ipsecmb ESNon ARon AES-CBC-192/SHA1-96 IPSec test""" |
| 1650 | self.run_test() |
| 1651 | |
| 1652 | |
| 1653 | class Test_ipsecmb_ESNon_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 1654 | """ipsecmb ESNon ARon AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1655 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1656 | def test_ipsec(self): |
| 1657 | """ipsecmb ESNon ARon AES-CBC-256/SHA1-96 IPSec test""" |
| 1658 | self.run_test() |
| 1659 | |
| 1660 | |
| 1661 | class Test_ipsecmb_ESNon_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 1662 | """ipsecmb ESNon ARon 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1663 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1664 | def test_ipsec(self): |
| 1665 | """ipsecmb ESNon ARon 3DES-CBC/SHA1-96 IPSec test""" |
| 1666 | self.run_test() |
| 1667 | |
| 1668 | |
| 1669 | class Test_ipsecmb_ESNon_ARon_NONE_SHA1_96(RunTestIpsecEspAll): |
| 1670 | """ipsecmb ESNon ARon NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1671 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1672 | def test_ipsec(self): |
| 1673 | """ipsecmb ESNon ARon NONE/SHA1-96 IPSec test""" |
| 1674 | self.run_test() |
| 1675 | |
| 1676 | |
| 1677 | class Test_ipsecmb_ESNon_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 1678 | """ipsecmb ESNon ARon AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1679 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1680 | def test_ipsec(self): |
| 1681 | """ipsecmb ESNon ARon AES-CTR-128/SHA1-96 IPSec test""" |
| 1682 | self.run_test() |
| 1683 | |
| 1684 | |
| 1685 | class Test_ipsecmb_ESNon_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 1686 | """ipsecmb ESNon ARon AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1687 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1688 | def test_ipsec(self): |
| 1689 | """ipsecmb ESNon ARon AES-CTR-192/SHA1-96 IPSec test""" |
| 1690 | self.run_test() |
| 1691 | |
| 1692 | |
| 1693 | class Test_ipsecmb_ESNon_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 1694 | """ipsecmb ESNon ARon AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1695 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1696 | def test_ipsec(self): |
| 1697 | """ipsecmb ESNon ARon AES-CTR-256/SHA1-96 IPSec test""" |
| 1698 | self.run_test() |
| 1699 | |
| 1700 | |
| 1701 | class Test_ipsecmb_ESNon_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 1702 | """ipsecmb ESNon ARoff AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1703 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1704 | def test_ipsec(self): |
| 1705 | """ipsecmb ESNon ARoff AES-GCM-128/NONE IPSec test""" |
| 1706 | self.run_test() |
| 1707 | |
| 1708 | |
| 1709 | class Test_ipsecmb_ESNon_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 1710 | """ipsecmb ESNon ARoff AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1711 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1712 | def test_ipsec(self): |
| 1713 | """ipsecmb ESNon ARoff AES-GCM-192/NONE IPSec test""" |
| 1714 | self.run_test() |
| 1715 | |
| 1716 | |
| 1717 | class Test_ipsecmb_ESNon_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 1718 | """ipsecmb ESNon ARoff AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1719 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1720 | def test_ipsec(self): |
| 1721 | """ipsecmb ESNon ARoff AES-GCM-256/NONE IPSec test""" |
| 1722 | self.run_test() |
| 1723 | |
| 1724 | |
| 1725 | class Test_ipsecmb_ESNon_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 1726 | """ipsecmb ESNon ARoff AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1727 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1728 | def test_ipsec(self): |
| 1729 | """ipsecmb ESNon ARoff AES-CBC-128/MD5-96 IPSec test""" |
| 1730 | self.run_test() |
| 1731 | |
| 1732 | |
| 1733 | class Test_ipsecmb_ESNon_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 1734 | """ipsecmb ESNon ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1735 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1736 | def test_ipsec(self): |
| 1737 | """ipsecmb ESNon ARoff AES-CBC-192/SHA1-96 IPSec test""" |
| 1738 | self.run_test() |
| 1739 | |
| 1740 | |
| 1741 | class Test_ipsecmb_ESNon_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 1742 | """ipsecmb ESNon ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1743 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1744 | def test_ipsec(self): |
| 1745 | """ipsecmb ESNon ARoff AES-CBC-256/SHA1-96 IPSec test""" |
| 1746 | self.run_test() |
| 1747 | |
| 1748 | |
| 1749 | class Test_ipsecmb_ESNon_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 1750 | """ipsecmb ESNon ARoff 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1751 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1752 | def test_ipsec(self): |
| 1753 | """ipsecmb ESNon ARoff 3DES-CBC/SHA1-96 IPSec test""" |
| 1754 | self.run_test() |
| 1755 | |
| 1756 | |
| 1757 | class Test_ipsecmb_ESNon_ARoff_NONE_SHA1_96(RunTestIpsecEspAll): |
| 1758 | """ipsecmb ESNon ARoff NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1759 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1760 | def test_ipsec(self): |
| 1761 | """ipsecmb ESNon ARoff NONE/SHA1-96 IPSec test""" |
| 1762 | self.run_test() |
| 1763 | |
| 1764 | |
| 1765 | class Test_ipsecmb_ESNon_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 1766 | """ipsecmb ESNon ARoff AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1767 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1768 | def test_ipsec(self): |
| 1769 | """ipsecmb ESNon ARoff AES-CTR-128/SHA1-96 IPSec test""" |
| 1770 | self.run_test() |
| 1771 | |
| 1772 | |
| 1773 | class Test_ipsecmb_ESNon_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 1774 | """ipsecmb ESNon ARoff AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1775 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1776 | def test_ipsec(self): |
| 1777 | """ipsecmb ESNon ARoff AES-CTR-192/SHA1-96 IPSec test""" |
| 1778 | self.run_test() |
| 1779 | |
| 1780 | |
| 1781 | class Test_ipsecmb_ESNon_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 1782 | """ipsecmb ESNon ARoff AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1783 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1784 | def test_ipsec(self): |
| 1785 | """ipsecmb ESNon ARoff AES-CTR-256/SHA1-96 IPSec test""" |
| 1786 | self.run_test() |
| 1787 | |
| 1788 | |
| 1789 | class Test_ipsecmb_ESNoff_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 1790 | """ipsecmb ESNoff ARon AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1791 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1792 | def test_ipsec(self): |
| 1793 | """ipsecmb ESNoff ARon AES-GCM-128/NONE IPSec test""" |
| 1794 | self.run_test() |
| 1795 | |
| 1796 | |
| 1797 | class Test_ipsecmb_ESNoff_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 1798 | """ipsecmb ESNoff ARon AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1799 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1800 | def test_ipsec(self): |
| 1801 | """ipsecmb ESNoff ARon AES-GCM-192/NONE IPSec test""" |
| 1802 | self.run_test() |
| 1803 | |
| 1804 | |
| 1805 | class Test_ipsecmb_ESNoff_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 1806 | """ipsecmb ESNoff ARon AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1807 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1808 | def test_ipsec(self): |
| 1809 | """ipsecmb ESNoff ARon AES-GCM-256/NONE IPSec test""" |
| 1810 | self.run_test() |
| 1811 | |
| 1812 | |
| 1813 | class Test_ipsecmb_ESNoff_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 1814 | """ipsecmb ESNoff ARon AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1815 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1816 | def test_ipsec(self): |
| 1817 | """ipsecmb ESNoff ARon AES-CBC-128/MD5-96 IPSec test""" |
| 1818 | self.run_test() |
| 1819 | |
| 1820 | |
| 1821 | class Test_ipsecmb_ESNoff_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 1822 | """ipsecmb ESNoff ARon AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1823 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1824 | def test_ipsec(self): |
| 1825 | """ipsecmb ESNoff ARon AES-CBC-192/SHA1-96 IPSec test""" |
| 1826 | self.run_test() |
| 1827 | |
| 1828 | |
| 1829 | class Test_ipsecmb_ESNoff_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 1830 | """ipsecmb ESNoff ARon AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1831 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1832 | def test_ipsec(self): |
| 1833 | """ipsecmb ESNoff ARon AES-CBC-256/SHA1-96 IPSec test""" |
| 1834 | self.run_test() |
| 1835 | |
| 1836 | |
| 1837 | class Test_ipsecmb_ESNoff_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 1838 | """ipsecmb ESNoff ARon 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1839 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1840 | def test_ipsec(self): |
| 1841 | """ipsecmb ESNoff ARon 3DES-CBC/SHA1-96 IPSec test""" |
| 1842 | self.run_test() |
| 1843 | |
| 1844 | |
| 1845 | class Test_ipsecmb_ESNoff_ARon_NONE_SHA1_96(RunTestIpsecEspAll): |
| 1846 | """ipsecmb ESNoff ARon NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1847 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1848 | def test_ipsec(self): |
| 1849 | """ipsecmb ESNoff ARon NONE/SHA1-96 IPSec test""" |
| 1850 | self.run_test() |
| 1851 | |
| 1852 | |
| 1853 | class Test_ipsecmb_ESNoff_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 1854 | """ipsecmb ESNoff ARon AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1855 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1856 | def test_ipsec(self): |
| 1857 | """ipsecmb ESNoff ARon AES-CTR-128/SHA1-96 IPSec test""" |
| 1858 | self.run_test() |
| 1859 | |
| 1860 | |
| 1861 | class Test_ipsecmb_ESNoff_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 1862 | """ipsecmb ESNoff ARon AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1863 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1864 | def test_ipsec(self): |
| 1865 | """ipsecmb ESNoff ARon AES-CTR-192/SHA1-96 IPSec test""" |
| 1866 | self.run_test() |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 1867 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 1868 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1869 | class Test_ipsecmb_ESNoff_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 1870 | """ipsecmb ESNoff ARon AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1871 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1872 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1873 | """ipsecmb ESNoff ARon AES-CTR-256/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1874 | self.run_test() |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 1875 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1876 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1877 | class Test_ipsecmb_ESNoff_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 1878 | """ipsecmb ESNoff ARoff AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1879 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1880 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1881 | """ipsecmb ESNoff ARoff AES-GCM-128/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1882 | self.run_test() |
| 1883 | |
| 1884 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1885 | class Test_ipsecmb_ESNoff_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 1886 | """ipsecmb ESNoff ARoff AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1887 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1888 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1889 | """ipsecmb ESNoff ARoff AES-GCM-192/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1890 | self.run_test() |
| 1891 | |
| 1892 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1893 | class Test_ipsecmb_ESNoff_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 1894 | """ipsecmb ESNoff ARoff AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1895 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1896 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1897 | """ipsecmb ESNoff ARoff AES-GCM-256/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1898 | self.run_test() |
| 1899 | |
| 1900 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1901 | class Test_ipsecmb_ESNoff_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 1902 | """ipsecmb ESNoff ARoff AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1903 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1904 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1905 | """ipsecmb ESNoff ARoff AES-CBC-128/MD5-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1906 | self.run_test() |
| 1907 | |
| 1908 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1909 | class Test_ipsecmb_ESNoff_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 1910 | """ipsecmb ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1911 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1912 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1913 | """ipsecmb ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1914 | self.run_test() |
| 1915 | |
| 1916 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1917 | class Test_ipsecmb_ESNoff_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 1918 | """ipsecmb ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1919 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1920 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1921 | """ipsecmb ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1922 | self.run_test() |
| 1923 | |
| 1924 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1925 | class Test_ipsecmb_ESNoff_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 1926 | """ipsecmb ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1927 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1928 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1929 | """ipsecmb ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1930 | self.run_test() |
| 1931 | |
| 1932 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1933 | class Test_ipsecmb_ESNoff_ARoff_NONE_SHA1_96(RunTestIpsecEspAll): |
| 1934 | """ipsecmb ESNoff ARoff NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1935 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 1936 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1937 | """ipsecmb ESNoff ARoff NONE/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 1938 | self.run_test() |
| 1939 | |
| 1940 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1941 | class Test_ipsecmb_ESNoff_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 1942 | """ipsecmb ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1943 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 1944 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1945 | """ipsecmb ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 1946 | self.run_test() |
| 1947 | |
| 1948 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1949 | class Test_ipsecmb_ESNoff_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 1950 | """ipsecmb ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1951 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 1952 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1953 | """ipsecmb ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 1954 | self.run_test() |
| 1955 | |
| 1956 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1957 | class Test_ipsecmb_ESNoff_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 1958 | """ipsecmb ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1959 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 1960 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1961 | """ipsecmb ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 1962 | self.run_test() |
| 1963 | |
| 1964 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1965 | class Test_openssl_ESNon_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 1966 | """openssl ESNon ARon AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1967 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 1968 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1969 | """openssl ESNon ARon AES-GCM-128/NONE IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 1970 | self.run_test() |
| 1971 | |
| 1972 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1973 | class Test_openssl_ESNon_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 1974 | """openssl ESNon ARon AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1975 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 1976 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1977 | """openssl ESNon ARon AES-GCM-192/NONE IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 1978 | self.run_test() |
| 1979 | |
| 1980 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1981 | class Test_openssl_ESNon_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 1982 | """openssl ESNon ARon AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1983 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1984 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1985 | """openssl ESNon ARon AES-GCM-256/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1986 | self.run_test() |
| 1987 | |
| 1988 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1989 | class Test_openssl_ESNon_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 1990 | """openssl ESNon ARon AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1991 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1992 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1993 | """openssl ESNon ARon AES-CBC-128/MD5-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 1994 | self.run_test() |
| 1995 | |
| 1996 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 1997 | class Test_openssl_ESNon_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 1998 | """openssl ESNon ARon AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 1999 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2000 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2001 | """openssl ESNon ARon AES-CBC-192/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2002 | self.run_test() |
| 2003 | |
| 2004 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2005 | class Test_openssl_ESNon_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 2006 | """openssl ESNon ARon AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2007 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2008 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2009 | """openssl ESNon ARon AES-CBC-256/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2010 | self.run_test() |
| 2011 | |
| 2012 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2013 | class Test_openssl_ESNon_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 2014 | """openssl ESNon ARon 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2015 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2016 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2017 | """openssl ESNon ARon 3DES-CBC/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2018 | self.run_test() |
| 2019 | |
| 2020 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2021 | class Test_openssl_ESNon_ARon_NONE_SHA1_96(RunTestIpsecEspAll): |
| 2022 | """openssl ESNon ARon NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2023 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2024 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2025 | """openssl ESNon ARon NONE/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2026 | self.run_test() |
| 2027 | |
| 2028 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2029 | class Test_openssl_ESNon_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 2030 | """openssl ESNon ARon AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2031 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2032 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2033 | """openssl ESNon ARon AES-CTR-128/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2034 | self.run_test() |
| 2035 | |
| 2036 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2037 | class Test_openssl_ESNon_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 2038 | """openssl ESNon ARon AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2039 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2040 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2041 | """openssl ESNon ARon AES-CTR-192/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2042 | self.run_test() |
| 2043 | |
| 2044 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2045 | class Test_openssl_ESNon_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 2046 | """openssl ESNon ARon AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2047 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2048 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2049 | """openssl ESNon ARon AES-CTR-256/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2050 | self.run_test() |
| 2051 | |
| 2052 | |
Benoît Ganne | 84e6658 | 2023-03-10 17:33:03 +0100 | [diff] [blame] | 2053 | class Test_openssl_ESNon_ARon_AES_NULL_GMAC_128_NONE(RunTestIpsecEspAll): |
| 2054 | """openssl ESNon ARon AES-NULL-GMAC-128/NONE IPSec test""" |
| 2055 | |
| 2056 | def test_ipsec(self): |
| 2057 | """openssl ESNon ARon AES-NULL-GMAC-128/NONE IPSec test""" |
| 2058 | self.run_test() |
| 2059 | |
| 2060 | |
| 2061 | class Test_openssl_ESNon_ARon_AES_NULL_GMAC_192_NONE(RunTestIpsecEspAll): |
| 2062 | """openssl ESNon ARon AES-NULL-GMAC-192/NONE IPSec test""" |
| 2063 | |
| 2064 | def test_ipsec(self): |
| 2065 | """openssl ESNon ARon AES-NULL-GMAC-192/NONE IPSec test""" |
| 2066 | self.run_test() |
| 2067 | |
| 2068 | |
| 2069 | class Test_openssl_ESNon_ARon_AES_NULL_GMAC_256_NONE(RunTestIpsecEspAll): |
| 2070 | """openssl ESNon ARon AES-NULL-GMAC-256/NONE IPSec test""" |
| 2071 | |
| 2072 | def test_ipsec(self): |
| 2073 | """openssl ESNon ARon AES-NULL-GMAC-256/NONE IPSec test""" |
| 2074 | self.run_test() |
| 2075 | |
| 2076 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2077 | class Test_openssl_ESNon_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 2078 | """openssl ESNon ARoff AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2079 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2080 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2081 | """openssl ESNon ARoff AES-GCM-128/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2082 | self.run_test() |
| 2083 | |
| 2084 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2085 | class Test_openssl_ESNon_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 2086 | """openssl ESNon ARoff AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2087 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2088 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2089 | """openssl ESNon ARoff AES-GCM-192/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2090 | self.run_test() |
| 2091 | |
| 2092 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2093 | class Test_openssl_ESNon_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 2094 | """openssl ESNon ARoff AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2095 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2096 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2097 | """openssl ESNon ARoff AES-GCM-256/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2098 | self.run_test() |
| 2099 | |
| 2100 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2101 | class Test_openssl_ESNon_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 2102 | """openssl ESNon ARoff AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2103 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2104 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2105 | """openssl ESNon ARoff AES-CBC-128/MD5-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2106 | self.run_test() |
| 2107 | |
| 2108 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2109 | class Test_openssl_ESNon_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 2110 | """openssl ESNon ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2111 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2112 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2113 | """openssl ESNon ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2114 | self.run_test() |
| 2115 | |
| 2116 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2117 | class Test_openssl_ESNon_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 2118 | """openssl ESNon ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2119 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2120 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2121 | """openssl ESNon ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2122 | self.run_test() |
| 2123 | |
| 2124 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2125 | class Test_openssl_ESNon_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 2126 | """openssl ESNon ARoff 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2127 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2128 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2129 | """openssl ESNon ARoff 3DES-CBC/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2130 | self.run_test() |
| 2131 | |
| 2132 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2133 | class Test_openssl_ESNon_ARoff_NONE_SHA1_96(RunTestIpsecEspAll): |
| 2134 | """openssl ESNon ARoff NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2135 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2136 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2137 | """openssl ESNon ARoff NONE/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2138 | self.run_test() |
| 2139 | |
| 2140 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2141 | class Test_openssl_ESNon_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 2142 | """openssl ESNon ARoff AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2143 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2144 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2145 | """openssl ESNon ARoff AES-CTR-128/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2146 | self.run_test() |
| 2147 | |
| 2148 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2149 | class Test_openssl_ESNon_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 2150 | """openssl ESNon ARoff AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2151 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2152 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2153 | """openssl ESNon ARoff AES-CTR-192/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2154 | self.run_test() |
| 2155 | |
| 2156 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2157 | class Test_openssl_ESNon_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 2158 | """openssl ESNon ARoff AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2159 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2160 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2161 | """openssl ESNon ARoff AES-CTR-256/SHA1-96 IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2162 | self.run_test() |
| 2163 | |
| 2164 | |
Benoît Ganne | 84e6658 | 2023-03-10 17:33:03 +0100 | [diff] [blame] | 2165 | class Test_openssl_ESNon_ARoff_AES_NULL_GMAC_128_NONE(RunTestIpsecEspAll): |
| 2166 | """openssl ESNon ARoff AES-NULL-GMAC-128/NONE IPSec test""" |
| 2167 | |
| 2168 | def test_ipsec(self): |
| 2169 | """openssl ESNon ARoff AES-NULL-GMAC-128/NONE IPSec test""" |
| 2170 | self.run_test() |
| 2171 | |
| 2172 | |
| 2173 | class Test_openssl_ESNon_ARoff_AES_NULL_GMAC_192_NONE(RunTestIpsecEspAll): |
| 2174 | """openssl ESNon ARoff AES-NULL-GMAC-192/NONE IPSec test""" |
| 2175 | |
| 2176 | def test_ipsec(self): |
| 2177 | """openssl ESNon ARoff AES-NULL-GMAC-192/NONE IPSec test""" |
| 2178 | self.run_test() |
| 2179 | |
| 2180 | |
| 2181 | class Test_openssl_ESNon_ARoff_AES_NULL_GMAC_256_NONE(RunTestIpsecEspAll): |
| 2182 | """openssl ESNon ARoff AES-NULL-GMAC-256/NONE IPSec test""" |
| 2183 | |
| 2184 | def test_ipsec(self): |
| 2185 | """openssl ESNon ARoff AES-NULL-GMAC-256/NONE IPSec test""" |
| 2186 | self.run_test() |
| 2187 | |
| 2188 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2189 | class Test_openssl_ESNoff_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 2190 | """openssl ESNoff ARon AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2191 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2192 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2193 | """openssl ESNoff ARon AES-GCM-128/NONE IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2194 | self.run_test() |
| 2195 | |
| 2196 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2197 | class Test_openssl_ESNoff_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 2198 | """openssl ESNoff ARon AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2199 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2200 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2201 | """openssl ESNoff ARon AES-GCM-192/NONE IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2202 | self.run_test() |
| 2203 | |
| 2204 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2205 | class Test_openssl_ESNoff_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 2206 | """openssl ESNoff ARon AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2207 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2208 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2209 | """openssl ESNoff ARon AES-GCM-256/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2210 | self.run_test() |
| 2211 | |
| 2212 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2213 | class Test_openssl_ESNoff_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 2214 | """openssl ESNoff ARon AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2215 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2216 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2217 | """openssl ESNoff ARon AES-CBC-128/MD5-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2218 | self.run_test() |
| 2219 | |
| 2220 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2221 | class Test_openssl_ESNoff_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 2222 | """openssl ESNoff ARon AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2223 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2224 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2225 | """openssl ESNoff ARon AES-CBC-192/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2226 | self.run_test() |
| 2227 | |
| 2228 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2229 | class Test_openssl_ESNoff_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 2230 | """openssl ESNoff ARon AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2231 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2232 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2233 | """openssl ESNoff ARon AES-CBC-256/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2234 | self.run_test() |
| 2235 | |
| 2236 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2237 | class Test_openssl_ESNoff_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 2238 | """openssl ESNoff ARon 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2239 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2240 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2241 | """openssl ESNoff ARon 3DES-CBC/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2242 | self.run_test() |
| 2243 | |
| 2244 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2245 | class Test_openssl_ESNoff_ARon_NONE_SHA1_96(RunTestIpsecEspAll): |
| 2246 | """openssl ESNoff ARon NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2247 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2248 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2249 | """openssl ESNoff ARon NONE/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2250 | self.run_test() |
| 2251 | |
| 2252 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2253 | class Test_openssl_ESNoff_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 2254 | """openssl ESNoff ARon AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2255 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2256 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2257 | """openssl ESNoff ARon AES-CTR-128/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2258 | self.run_test() |
| 2259 | |
| 2260 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2261 | class Test_openssl_ESNoff_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 2262 | """openssl ESNoff ARon AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2263 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2264 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2265 | """openssl ESNoff ARon AES-CTR-192/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2266 | self.run_test() |
| 2267 | |
| 2268 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2269 | class Test_openssl_ESNoff_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 2270 | """openssl ESNoff ARon AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2271 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2272 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2273 | """openssl ESNoff ARon AES-CTR-256/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2274 | self.run_test() |
| 2275 | |
| 2276 | |
Benoît Ganne | 84e6658 | 2023-03-10 17:33:03 +0100 | [diff] [blame] | 2277 | class Test_openssl_ESNoff_ARon_AES_NULL_GMAC_128_NONE(RunTestIpsecEspAll): |
| 2278 | """openssl ESNoff ARon AES-NULL-GMAC-128/NONE IPSec test""" |
| 2279 | |
| 2280 | def test_ipsec(self): |
| 2281 | """openssl ESNoff ARon AES-NULL-GMAC-128/NONE IPSec test""" |
| 2282 | self.run_test() |
| 2283 | |
| 2284 | |
| 2285 | class Test_openssl_ESNoff_ARon_AES_NULL_GMAC_192_NONE(RunTestIpsecEspAll): |
| 2286 | """openssl ESNoff ARon AES-NULL-GMAC-192/NONE IPSec test""" |
| 2287 | |
| 2288 | def test_ipsec(self): |
| 2289 | """openssl ESNoff ARon AES-NULL-GMAC-192/NONE IPSec test""" |
| 2290 | self.run_test() |
| 2291 | |
| 2292 | |
| 2293 | class Test_openssl_ESNoff_ARon_AES_NULL_GMAC_256_NONE(RunTestIpsecEspAll): |
| 2294 | """openssl ESNoff ARon AES-NULL-GMAC-256/NONE IPSec test""" |
| 2295 | |
| 2296 | def test_ipsec(self): |
| 2297 | """openssl ESNoff ARon AES-NULL-GMAC-256/NONE IPSec test""" |
| 2298 | self.run_test() |
| 2299 | |
| 2300 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2301 | class Test_openssl_ESNoff_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 2302 | """openssl ESNoff ARoff AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2303 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2304 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2305 | """openssl ESNoff ARoff AES-GCM-128/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2306 | self.run_test() |
| 2307 | |
| 2308 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2309 | class Test_openssl_ESNoff_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 2310 | """openssl ESNoff ARoff AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2311 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2312 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2313 | """openssl ESNoff ARoff AES-GCM-192/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2314 | self.run_test() |
| 2315 | |
| 2316 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2317 | class Test_openssl_ESNoff_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 2318 | """openssl ESNoff ARoff AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2319 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2320 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2321 | """openssl ESNoff ARoff AES-GCM-256/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2322 | self.run_test() |
| 2323 | |
| 2324 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2325 | class Test_openssl_ESNoff_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll): |
| 2326 | """openssl ESNoff ARoff AES-CBC-128/MD5-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2327 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2328 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2329 | """openssl ESNoff ARoff AES-CBC-128/MD5-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2330 | self.run_test() |
| 2331 | |
| 2332 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2333 | class Test_openssl_ESNoff_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 2334 | """openssl ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2335 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2336 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2337 | """openssl ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2338 | self.run_test() |
| 2339 | |
| 2340 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2341 | class Test_openssl_ESNoff_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 2342 | """openssl ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2343 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2344 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2345 | """openssl ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2346 | self.run_test() |
| 2347 | |
| 2348 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2349 | class Test_openssl_ESNoff_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll): |
| 2350 | """openssl ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2351 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2352 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2353 | """openssl ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2354 | self.run_test() |
| 2355 | |
| 2356 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2357 | class Test_openssl_ESNoff_ARoff_NONE_SHA1_96(RunTestIpsecEspAll): |
| 2358 | """openssl ESNoff ARoff NONE/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2359 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2360 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2361 | """openssl ESNoff ARoff NONE/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2362 | self.run_test() |
| 2363 | |
| 2364 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2365 | class Test_openssl_ESNoff_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll): |
| 2366 | """openssl ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2367 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2368 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2369 | """openssl ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2370 | self.run_test() |
| 2371 | |
| 2372 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2373 | class Test_openssl_ESNoff_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll): |
| 2374 | """openssl ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2375 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2376 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2377 | """openssl ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2378 | self.run_test() |
| 2379 | |
| 2380 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2381 | class Test_openssl_ESNoff_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll): |
| 2382 | """openssl ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2383 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2384 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2385 | """openssl ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2386 | self.run_test() |
| 2387 | |
| 2388 | |
Benoît Ganne | 84e6658 | 2023-03-10 17:33:03 +0100 | [diff] [blame] | 2389 | class Test_openssl_ESNoff_ARoff_AES_NULL_GMAC_128_NONE(RunTestIpsecEspAll): |
| 2390 | """openssl ESNoff ARoff AES-NULL-GMAC-128/NONE IPSec test""" |
| 2391 | |
| 2392 | def test_ipsec(self): |
| 2393 | """openssl ESNoff ARoff AES-NULL-GMAC-128/NONE IPSec test""" |
| 2394 | self.run_test() |
| 2395 | |
| 2396 | |
| 2397 | class Test_openssl_ESNoff_ARoff_AES_NULL_GMAC_192_NONE(RunTestIpsecEspAll): |
| 2398 | """openssl ESNoff ARoff AES-NULL-GMAC-192/NONE IPSec test""" |
| 2399 | |
| 2400 | def test_ipsec(self): |
| 2401 | """openssl ESNoff ARoff AES-NULL-GMAC-192/NONE IPSec test""" |
| 2402 | self.run_test() |
| 2403 | |
| 2404 | |
| 2405 | class Test_openssl_ESNoff_ARoff_AES_NULL_GMAC_256_NONE(RunTestIpsecEspAll): |
| 2406 | """openssl ESNoff ARoff AES-NULL-GMAC-256/NONE IPSec test""" |
| 2407 | |
| 2408 | def test_ipsec(self): |
| 2409 | """openssl ESNoff ARoff AES-NULL-GMAC-256/NONE IPSec test""" |
| 2410 | self.run_test() |
| 2411 | |
| 2412 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2413 | class Test_async_ESNon_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 2414 | """async ESNon ARon AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2415 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2416 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2417 | """async ESNon ARon AES-GCM-128/NONE IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2418 | self.run_test() |
| 2419 | |
| 2420 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2421 | class Test_async_ESNon_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 2422 | """async ESNon ARon AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2423 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2424 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2425 | """async ESNon ARon AES-GCM-192/NONE IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2426 | self.run_test() |
| 2427 | |
| 2428 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2429 | class Test_async_ESNon_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 2430 | """async ESNon ARon AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2431 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2432 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2433 | """async ESNon ARon AES-GCM-256/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2434 | self.run_test() |
| 2435 | |
| 2436 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2437 | class Test_async_ESNon_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 2438 | """async ESNon ARon AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2439 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2440 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2441 | """async ESNon ARon AES-CBC-192/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2442 | self.run_test() |
| 2443 | |
| 2444 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2445 | class Test_async_ESNon_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 2446 | """async ESNon ARon AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2447 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2448 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2449 | """async ESNon ARon AES-CBC-256/SHA1-96 IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2450 | self.run_test() |
| 2451 | |
| 2452 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2453 | class Test_async_ESNon_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 2454 | """async ESNon ARoff AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2455 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2456 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2457 | """async ESNon ARoff AES-GCM-128/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2458 | self.run_test() |
| 2459 | |
| 2460 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2461 | class Test_async_ESNon_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 2462 | """async ESNon ARoff AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2463 | |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2464 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2465 | """async ESNon ARoff AES-GCM-192/NONE IPSec test""" |
Andrew Yourtchenko | fbc3889 | 2019-09-09 11:14:59 +0000 | [diff] [blame] | 2466 | self.run_test() |
Neale Ranns | 6afaae1 | 2019-07-17 15:07:14 +0000 | [diff] [blame] | 2467 | |
Neale Ranns | 4f33c80 | 2019-04-10 12:39:10 +0000 | [diff] [blame] | 2468 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2469 | class Test_async_ESNon_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 2470 | """async ESNon ARoff AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2471 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2472 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2473 | """async ESNon ARoff AES-GCM-256/NONE IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2474 | self.run_test() |
| 2475 | |
| 2476 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2477 | class Test_async_ESNon_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 2478 | """async ESNon ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2479 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2480 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2481 | """async ESNon ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2482 | self.run_test() |
| 2483 | |
| 2484 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2485 | class Test_async_ESNon_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 2486 | """async ESNon ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2487 | |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2488 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2489 | """async ESNon ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Benoît Ganne | 490b927 | 2021-01-22 18:03:09 +0100 | [diff] [blame] | 2490 | self.run_test() |
| 2491 | |
| 2492 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2493 | class Test_async_ESNoff_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 2494 | """async ESNoff ARon AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2495 | |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2496 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2497 | """async ESNoff ARon AES-GCM-128/NONE IPSec test""" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2498 | self.run_test() |
| 2499 | |
| 2500 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2501 | class Test_async_ESNoff_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 2502 | """async ESNoff ARon AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2503 | |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2504 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2505 | """async ESNoff ARon AES-GCM-192/NONE IPSec test""" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2506 | self.run_test() |
| 2507 | |
| 2508 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2509 | class Test_async_ESNoff_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 2510 | """async ESNoff ARon AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2511 | |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2512 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2513 | """async ESNoff ARon AES-GCM-256/NONE IPSec test""" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2514 | self.run_test() |
| 2515 | |
| 2516 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2517 | class Test_async_ESNoff_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 2518 | """async ESNoff ARon AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2519 | |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2520 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2521 | """async ESNoff ARon AES-CBC-192/SHA1-96 IPSec test""" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2522 | self.run_test() |
| 2523 | |
| 2524 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2525 | class Test_async_ESNoff_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 2526 | """async ESNoff ARon AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2527 | |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2528 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2529 | """async ESNoff ARon AES-CBC-256/SHA1-96 IPSec test""" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2530 | self.run_test() |
| 2531 | |
| 2532 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2533 | class Test_async_ESNoff_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll): |
| 2534 | """async ESNoff ARoff AES-GCM-128/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2535 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2536 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2537 | """async ESNoff ARoff AES-GCM-128/NONE IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2538 | self.run_test() |
| 2539 | |
| 2540 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2541 | class Test_async_ESNoff_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll): |
| 2542 | """async ESNoff ARoff AES-GCM-192/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2543 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2544 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2545 | """async ESNoff ARoff AES-GCM-192/NONE IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2546 | self.run_test() |
| 2547 | |
| 2548 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2549 | class Test_async_ESNoff_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll): |
| 2550 | """async ESNoff ARoff AES-GCM-256/NONE IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2551 | |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2552 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2553 | """async ESNoff ARoff AES-GCM-256/NONE IPSec test""" |
Neale Ranns | 9c23ff8 | 2021-06-25 13:30:50 +0000 | [diff] [blame] | 2554 | self.run_test() |
| 2555 | |
| 2556 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2557 | class Test_async_ESNoff_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll): |
| 2558 | """async ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2559 | |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2560 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2561 | """async ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test""" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2562 | self.run_test() |
| 2563 | |
| 2564 | |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2565 | class Test_async_ESNoff_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll): |
| 2566 | """async ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 2567 | |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2568 | def test_ipsec(self): |
Neale Ranns | 5b89110 | 2021-06-28 13:31:28 +0000 | [diff] [blame] | 2569 | """async ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test""" |
Neale Ranns | 8c609af | 2021-02-25 10:05:32 +0000 | [diff] [blame] | 2570 | self.run_test() |