blob: bfdef2a78d761d5ca927db51714eb9c74837dab7 [file] [log] [blame]
“mystarrocks”23f0c452017-12-11 07:11:51 -08001import socket
Dmitry Valter34fa0ce2024-03-11 10:38:46 +00002import unittest
Klement Sekera31da2e32018-06-24 22:49:55 +02003from scapy.layers.ipsec import ESP
Christian Hoppsfb7e7ed2019-11-03 07:02:15 -05004from scapy.layers.inet import IP, ICMP, UDP
Neale Ranns041add72020-01-02 04:06:10 +00005from scapy.layers.inet6 import IPv6
6from scapy.layers.l2 import Ether
7from scapy.packet import Raw
“mystarrocks”23f0c452017-12-11 07:11:51 -08008
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02009from template_ipsec import (
10 IpsecTra46Tests,
11 IpsecTun46Tests,
12 TemplateIpsec,
13 IpsecTcpTests,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020014 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)
27from vpp_ipsec import VppIpsecSpd, VppIpsecSpdEntry, VppIpsecSA, VppIpsecSpdItfBinding
Neale Ranns311124e2019-01-24 04:52:25 -080028from vpp_ip_route import VppIpRoute, VppRoutePath
29from vpp_ip import DpoProto
Neale Ranns17dcec02019-01-09 21:22:20 -080030from vpp_papi import VppEnum
Dmitry Valter34fa0ce2024-03-11 10:38:46 +000031from config import config
“mystarrocks”23f0c452017-12-11 07:11:51 -080032
Neale Rannsc87b66c2019-02-07 07:26:12 -080033NUM_PKTS = 67
Benoît Ganne5c481ff2021-03-08 10:22:51 +010034engines_supporting_chain_bufs = ["openssl", "async"]
Neale Rannsf16e9a52021-02-25 19:09:24 +000035engines = ["ia32", "ipsecmb", "openssl"]
Neale Rannsc87b66c2019-02-07 07:26:12 -080036
“mystarrocks”23f0c452017-12-11 07:11:51 -080037
Neale Ranns4f33c802019-04-10 12:39:10 +000038class ConfigIpsecESP(TemplateIpsec):
39 encryption_type = ESP
40 tra4_encrypt_node_name = "esp4-encrypt"
Neale Ranns8c609af2021-02-25 10:05:32 +000041 tra4_decrypt_node_name = ["esp4-decrypt", "esp4-decrypt-post"]
Neale Ranns4f33c802019-04-10 12:39:10 +000042 tra6_encrypt_node_name = "esp6-encrypt"
Neale Ranns8c609af2021-02-25 10:05:32 +000043 tra6_decrypt_node_name = ["esp6-decrypt", "esp6-decrypt-post"]
Neale Ranns4f33c802019-04-10 12:39:10 +000044 tun4_encrypt_node_name = "esp4-encrypt"
Neale Ranns8c609af2021-02-25 10:05:32 +000045 tun4_decrypt_node_name = ["esp4-decrypt", "esp4-decrypt-post"]
Neale Ranns4f33c802019-04-10 12:39:10 +000046 tun6_encrypt_node_name = "esp6-encrypt"
Neale Ranns8c609af2021-02-25 10:05:32 +000047 tun6_decrypt_node_name = ["esp6-decrypt", "esp6-decrypt-post"]
Neale Ranns53f526b2019-02-25 14:32:02 +000048
Neale Ranns4f33c802019-04-10 12:39:10 +000049 @classmethod
50 def setUpClass(cls):
51 super(ConfigIpsecESP, cls).setUpClass()
Neale Ranns53f526b2019-02-25 14:32:02 +000052
Neale Ranns4f33c802019-04-10 12:39:10 +000053 @classmethod
54 def tearDownClass(cls):
55 super(ConfigIpsecESP, cls).tearDownClass()
Neale Ranns53f526b2019-02-25 14:32:02 +000056
Neale Ranns4f33c802019-04-10 12:39:10 +000057 def setUp(self):
58 super(ConfigIpsecESP, self).setUp()
Neale Ranns53f526b2019-02-25 14:32:02 +000059
Neale Ranns4f33c802019-04-10 12:39:10 +000060 def tearDown(self):
61 super(ConfigIpsecESP, self).tearDown()
62
Maxime Peim0e2f1882022-12-22 11:26:57 +000063 def config_anti_replay(self, params, anti_replay_window_size=64):
Neale Ranns5b891102021-06-28 13:31:28 +000064 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 Peim0e2f1882022-12-22 11:26:57 +000067 p.anti_replay_window_size = anti_replay_window_size
Neale Ranns5b891102021-06-28 13:31:28 +000068
Neale Ranns4f33c802019-04-10 12:39:10 +000069 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 Sekerad9b0c6f2022-04-26 19:02:15 +020082 b = VppIpsecSpdItfBinding(self, self.tun_spd, self.tun_if)
Neale Ranns4f33c802019-04-10 12:39:10 +000083 b.add_vpp_config()
84 self.net_objs.append(b)
85
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020086 b = VppIpsecSpdItfBinding(self, self.tra_spd, self.tra_if)
Neale Ranns4f33c802019-04-10 12:39:10 +000087 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 Ranns12989b52019-09-26 16:20:19 +000095 config_tun_params(p, self.encryption_type, self.tun_if)
Neale Ranns4f33c802019-04-10 12:39:10 +000096
97 for p in params:
98 d = DpoProto.DPO_PROTO_IP6 if p.is_ipv6 else DpoProto.DPO_PROTO_IP4
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020099 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 Ranns4f33c802019-04-10 12:39:10 +0000109 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 Ranns49e7ef62019-04-10 17:24:29 +0000133 flags = params.flags
Neale Ranns041add72020-01-02 04:06:10 +0000134 tun_flags = params.tun_flags
Neale Ranns80f6fd52019-04-16 02:41:34 +0000135 salt = params.salt
Maxime Peim0e2f1882022-12-22 11:26:57 +0000136 anti_replay_window_size = params.anti_replay_window_size
Neale Ranns4f33c802019-04-10 12:39:10 +0000137 objs = []
138
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200139 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 Sekerad9b0c6f2022-04-26 19:02:15 +0200148 self.tun_if.remote_addr[addr_type],
Arthur de Kerhor0df06b62022-11-16 18:45:24 +0100149 self.tun_if.local_addr[addr_type],
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200150 tun_flags=tun_flags,
151 dscp=params.dscp,
152 flags=flags,
153 salt=salt,
154 hop_limit=params.outer_hop_limit,
Maxime Peim0e2f1882022-12-22 11:26:57 +0000155 anti_replay_window_size=anti_replay_window_size,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200156 )
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 Sekerad9b0c6f2022-04-26 19:02:15 +0200166 self.tun_if.local_addr[addr_type],
Arthur de Kerhor0df06b62022-11-16 18:45:24 +0100167 self.tun_if.remote_addr[addr_type],
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200168 tun_flags=tun_flags,
169 dscp=params.dscp,
170 flags=flags,
171 salt=salt,
172 hop_limit=params.outer_hop_limit,
Maxime Peim0e2f1882022-12-22 11:26:57 +0000173 anti_replay_window_size=anti_replay_window_size,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200174 )
Neale Ranns4f33c802019-04-10 12:39:10 +0000175 objs.append(params.tun_sa_in)
176 objs.append(params.tun_sa_out)
177
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200178 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 Ranns4f33c802019-04-10 12:39:10 +0000199 objs.append(params.spd_policy_out_any)
200 objs.append(params.spd_policy_in_any)
201
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200202 objs.append(
203 VppIpsecSpdEntry(
204 self,
205 self.tun_spd,
Arthur de Kerhor0df06b62022-11-16 18:45:24 +0100206 scapy_tun_sa_id,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200207 remote_tun_if_host,
208 remote_tun_if_host,
209 self.pg1.remote_addr[addr_type],
210 self.pg1.remote_addr[addr_type],
Piotr Bronowski815c6a42022-06-09 09:09:28 +0000211 socket.IPPROTO_RAW,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200212 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 Kerhor0df06b62022-11-16 18:45:24 +0100221 vpp_tun_sa_id,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200222 self.pg1.remote_addr[addr_type],
223 self.pg1.remote_addr[addr_type],
224 remote_tun_if_host,
225 remote_tun_if_host,
Piotr Bronowski815c6a42022-06-09 09:09:28 +0000226 socket.IPPROTO_RAW,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200227 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 Kerhor0df06b62022-11-16 18:45:24 +0100235 scapy_tun_sa_id,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200236 remote_tun_if_host,
237 remote_tun_if_host,
238 self.pg0.local_addr[addr_type],
239 self.pg0.local_addr[addr_type],
Piotr Bronowski815c6a42022-06-09 09:09:28 +0000240 socket.IPPROTO_RAW,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200241 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 Kerhor0df06b62022-11-16 18:45:24 +0100250 vpp_tun_sa_id,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200251 self.pg0.local_addr[addr_type],
252 self.pg0.local_addr[addr_type],
253 remote_tun_if_host,
254 remote_tun_if_host,
Piotr Bronowski815c6a42022-06-09 09:09:28 +0000255 socket.IPPROTO_RAW,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200256 policy=e.IPSEC_API_SPD_ACTION_PROTECT,
257 priority=20,
258 )
259 )
Neale Ranns4f33c802019-04-10 12:39:10 +0000260 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 Ranns4f33c802019-04-10 12:39:10 +0000276 e = VppEnum.vl_api_ipsec_spd_action_t
Neale Ranns5b891102021-06-28 13:31:28 +0000277 flags = params.flags
Neale Ranns80f6fd52019-04-16 02:41:34 +0000278 salt = params.salt
Maxime Peim0e2f1882022-12-22 11:26:57 +0000279 anti_replay_window_size = params.anti_replay_window_size
Neale Ranns4f33c802019-04-10 12:39:10 +0000280 objs = []
281
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200282 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 Peim0e2f1882022-12-22 11:26:57 +0000293 anti_replay_window_size=anti_replay_window_size,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200294 )
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 Peim0e2f1882022-12-22 11:26:57 +0000306 anti_replay_window_size=anti_replay_window_size,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200307 )
Neale Ranns4f33c802019-04-10 12:39:10 +0000308 objs.append(params.tra_sa_in)
309 objs.append(params.tra_sa_out)
310
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200311 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 Kerhor0df06b62022-11-16 18:45:24 +0100340 scapy_tra_sa_id,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200341 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 Bronowski815c6a42022-06-09 09:09:28 +0000345 socket.IPPROTO_RAW,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200346 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 Kerhor0df06b62022-11-16 18:45:24 +0100355 vpp_tra_sa_id,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200356 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 Bronowski815c6a42022-06-09 09:09:28 +0000360 socket.IPPROTO_RAW,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200361 policy=e.IPSEC_API_SPD_ACTION_PROTECT,
362 priority=10,
363 )
364 )
Neale Ranns4f33c802019-04-10 12:39:10 +0000365 for o in objs:
366 o.add_vpp_config()
367 self.net_objs = self.net_objs + objs
Neale Ranns53f526b2019-02-25 14:32:02 +0000368
369
Neale Ranns4f33c802019-04-10 12:39:10 +0000370class TemplateIpsecEsp(ConfigIpsecESP):
“mystarrocks”23f0c452017-12-11 07:11:51 -0800371 """
372 Basic test for ipsec esp sanity - tunnel and transport modes.
373
374 Below 4 cases are covered as part of this test
Dave Wallaced1706812021-08-12 18:36:02 -0400375
376 #. ipsec esp v4 transport basic test - IPv4 Transport mode
Paul Vinciguerra8feeaff2019-03-27 11:25:48 -0700377 scenario using HMAC-SHA1-96 integrity algo
Dave Wallaced1706812021-08-12 18:36:02 -0400378
379 #. ipsec esp v4 transport burst test
“mystarrocks”23f0c452017-12-11 07:11:51 -0800380 Above test for 257 pkts
381
Dave Wallaced1706812021-08-12 18:36:02 -0400382 #. ipsec esp 4o4 tunnel basic test - IPv4 Tunnel mode
383 scenario using HMAC-SHA1-96 integrity algo
“mystarrocks”23f0c452017-12-11 07:11:51 -0800384
Dave Wallaced1706812021-08-12 18:36:02 -0400385 #. ipsec esp 4o4 tunnel burst test
386 Above test for 257 pkts
“mystarrocks”23f0c452017-12-11 07:11:51 -0800387
Dave Wallaced1706812021-08-12 18:36:02 -0400388 TRANSPORT MODE::
“mystarrocks”23f0c452017-12-11 07:11:51 -0800389
Dave Wallaced1706812021-08-12 18:36:02 -0400390 --- encrypt ---
391 |pg2| <-------> |VPP|
392 --- decrypt ---
“mystarrocks”23f0c452017-12-11 07:11:51 -0800393
Dave Wallaced1706812021-08-12 18:36:02 -0400394 TUNNEL MODE::
395
396 --- encrypt --- plain ---
397 |pg0| <------- |VPP| <------ |pg1|
398 --- --- ---
399
400 --- decrypt --- plain ---
401 |pg0| -------> |VPP| ------> |pg1|
402 --- --- ---
403
“mystarrocks”23f0c452017-12-11 07:11:51 -0800404 """
405
Paul Vinciguerra7f9b7f92019-03-12 19:23:27 -0700406 @classmethod
407 def setUpClass(cls):
408 super(TemplateIpsecEsp, cls).setUpClass()
409
410 @classmethod
411 def tearDownClass(cls):
412 super(TemplateIpsecEsp, cls).tearDownClass()
413
Neale Ranns8e4a89b2019-01-23 08:16:17 -0800414 def setUp(self):
415 super(TemplateIpsecEsp, self).setUp()
Neale Ranns5b891102021-06-28 13:31:28 +0000416 self.config_anti_replay(self.params.values())
Neale Ranns4f33c802019-04-10 12:39:10 +0000417 self.config_network(self.params.values())
Klement Sekera611864f2018-09-26 11:19:00 +0200418
Neale Ranns8e4a89b2019-01-23 08:16:17 -0800419 def tearDown(self):
Neale Ranns4f33c802019-04-10 12:39:10 +0000420 self.unconfig_network()
Neale Ranns8e4a89b2019-01-23 08:16:17 -0800421 super(TemplateIpsecEsp, self).tearDown()
Neale Ranns8e4a89b2019-01-23 08:16:17 -0800422
Klement Sekera611864f2018-09-26 11:19:00 +0200423
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200424class TestIpsecEsp1(
425 TemplateIpsecEsp, IpsecTra46Tests, IpsecTun46Tests, IpsecTra6ExtTests
426):
427 """Ipsec ESP - TUN & TRA tests"""
Neale Rannsb1fd80f2020-05-12 13:33:56 +0000428
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 Sekerad9b0c6f2022-04-26 19:02:15 +0200444 """ipsec 4o6 tunnel"""
Neale Rannsb1fd80f2020-05-12 13:33:56 +0000445 # 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 Sekerad9b0c6f2022-04-26 19:02:15 +0200452 VppIpsecSpdEntry(
453 self,
454 self.tun_spd,
Arthur de Kerhor0df06b62022-11-16 18:45:24 +0100455 p6.vpp_tun_sa_id,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200456 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 Bronowski815c6a42022-06-09 09:09:28 +0000460 socket.IPPROTO_RAW,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200461 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 Rannsb1fd80f2020-05-12 13:33:56 +0000471
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 Sekerad9b0c6f2022-04-26 19:02:15 +0200479 """ipsec 6o4 tunnel"""
Neale Rannsb1fd80f2020-05-12 13:33:56 +0000480 # 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 Sekerad9b0c6f2022-04-26 19:02:15 +0200487 VppIpsecSpdEntry(
488 self,
489 self.tun_spd,
Arthur de Kerhor0df06b62022-11-16 18:45:24 +0100490 p4.vpp_tun_sa_id,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200491 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 Bronowski815c6a42022-06-09 09:09:28 +0000495 socket.IPPROTO_RAW,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200496 priority=10,
497 policy=e.IPSEC_API_SPD_ACTION_PROTECT,
498 is_outbound=1,
499 ).add_vpp_config()
Neale Rannsb1fd80f2020-05-12 13:33:56 +0000500 d = DpoProto.DPO_PROTO_IP6
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200501 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 Rannsb1fd80f2020-05-12 13:33:56 +0000507
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”23f0c452017-12-11 07:11:51 -0800512
“mystarrocks”23f0c452017-12-11 07:11:51 -0800513
Neale Ranns041add72020-01-02 04:06:10 +0000514class TestIpsecEspTun(TemplateIpsecEsp, IpsecTun46Tests):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200515 """Ipsec ESP - TUN encap tests"""
Neale Ranns041add72020-01-02 04:06:10 +0000516
517 def setUp(self):
518 self.ipv4_params = IPsecIPv4Params()
519 self.ipv6_params = IPsecIPv6Params()
520
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200521 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 Ranns041add72020-01-02 04:06:10 +0000527
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 Sekerad9b0c6f2022-04-26 19:02:15 +0200535 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 Ranns041add72020-01-02 04:06:10 +0000542
Neale Ranns9ec846c2021-02-09 14:04:02 +0000543 def gen_pkts6(self, p, sw_intf, src, dst, count=1, payload_size=54):
Neale Ranns041add72020-01-02 04:06:10 +0000544 # set the DSCP + ECN - flags are set to copy both
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200545 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 Ranns041add72020-01-02 04:06:10 +0000552
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
564class TestIpsecEspTun2(TemplateIpsecEsp, IpsecTun46Tests):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200565 """Ipsec ESP - TUN DSCP tests"""
Neale Ranns041add72020-01-02 04:06:10 +0000566
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 Sekerad9b0c6f2022-04-26 19:02:15 +0200577 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 Ranns041add72020-01-02 04:06:10 +0000584
Neale Ranns9ec846c2021-02-09 14:04:02 +0000585 def gen_pkts6(self, p, sw_intf, src, dst, count=1, payload_size=54):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200586 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 Ranns041add72020-01-02 04:06:10 +0000593
594 def verify_encrypted(self, p, sa, rxs):
Neale Ranns9ec846c2021-02-09 14:04:02 +0000595 # just check that only the DSCP is set
Neale Ranns041add72020-01-02 04:06:10 +0000596 for rx in rxs:
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200597 self.assertEqual(rx[IP].tos, VppEnum.vl_api_ip_dscp_t.IP_API_DSCP_EF << 2)
Neale Ranns041add72020-01-02 04:06:10 +0000598
599 def verify_encrypted6(self, p, sa, rxs):
Neale Ranns9ec846c2021-02-09 14:04:02 +0000600 # just check that the DSCP is set
Neale Ranns041add72020-01-02 04:06:10 +0000601 for rx in rxs:
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200602 self.assertEqual(
603 rx[IPv6].tc, VppEnum.vl_api_ip_dscp_t.IP_API_DSCP_AF11 << 2
604 )
Neale Ranns041add72020-01-02 04:06:10 +0000605
606
Klement Sekera31da2e32018-06-24 22:49:55 +0200607class TestIpsecEsp2(TemplateIpsecEsp, IpsecTcpTests):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200608 """Ipsec ESP - TCP tests"""
609
Klement Sekera31da2e32018-06-24 22:49:55 +0200610 pass
“mystarrocks”23f0c452017-12-11 07:11:51 -0800611
612
Neale Rannsfc811342021-02-26 10:35:33 +0000613class TestIpsecEspAsync(TemplateIpsecEsp):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200614 """Ipsec ESP - Aysnc tests"""
Neale Rannsfc811342021-02-26 10:35:33 +0000615
Klement Sekera8d815022021-03-15 16:58:10 +0100616 vpp_worker_count = 2
Neale Rannsfc811342021-02-26 10:35:33 +0000617
618 def setUp(self):
619 super(TestIpsecEspAsync, self).setUp()
620
Neale Rannsf16e9a52021-02-25 19:09:24 +0000621 self.p_sync = IPsecIPv4Params()
Neale Rannsfc811342021-02-26 10:35:33 +0000622
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200623 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 Rannsfc811342021-02-26 10:35:33 +0000628
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200629 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 Rannsf16e9a52021-02-25 19:09:24 +0000633 self.p_sync.remote_tun_if_host = "2.2.2.2"
Neale Rannsfc811342021-02-26 10:35:33 +0000634 e = VppEnum.vl_api_ipsec_spd_action_t
635
Neale Rannsf16e9a52021-02-25 19:09:24 +0000636 self.p_sync.sa = VppIpsecSA(
Neale Rannsfc811342021-02-26 10:35:33 +0000637 self,
Neale Rannsf16e9a52021-02-25 19:09:24 +0000638 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 Rannsfc811342021-02-26 10:35:33 +0000644 self.vpp_esp_protocol,
Neale Rannsf16e9a52021-02-25 19:09:24 +0000645 self.tun_if.local_addr[self.p_sync.addr_type],
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200646 self.tun_if.remote_addr[self.p_sync.addr_type],
647 ).add_vpp_config()
Neale Rannsf16e9a52021-02-25 19:09:24 +0000648 self.p_sync.spd = VppIpsecSpdEntry(
Neale Rannsfc811342021-02-26 10:35:33 +0000649 self,
650 self.tun_spd,
Neale Rannsf16e9a52021-02-25 19:09:24 +0000651 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 Bronowski815c6a42022-06-09 09:09:28 +0000656 socket.IPPROTO_RAW,
Neale Rannsfc811342021-02-26 10:35:33 +0000657 priority=1,
658 policy=e.IPSEC_API_SPD_ACTION_PROTECT,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200659 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 Rannsf16e9a52021-02-25 19:09:24 +0000667 config_tun_params(self.p_sync, self.encryption_type, self.tun_if)
668
669 self.p_async = IPsecIPv4Params()
670
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200671 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 Rannsf16e9a52021-02-25 19:09:24 +0000680
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200681 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 Rannsf16e9a52021-02-25 19:09:24 +0000685 self.p_async.remote_tun_if_host = "2.2.2.3"
686
687 iflags = VppEnum.vl_api_ipsec_sad_flags_t
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200688 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 Rannsf16e9a52021-02-25 19:09:24 +0000693
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 Sekerad9b0c6f2022-04-26 19:02:15 +0200705 flags=self.p_async.flags,
706 ).add_vpp_config()
Neale Rannsf16e9a52021-02-25 19:09:24 +0000707 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 Bronowski815c6a42022-06-09 09:09:28 +0000715 socket.IPPROTO_RAW,
Neale Rannsf16e9a52021-02-25 19:09:24 +0000716 priority=2,
717 policy=e.IPSEC_API_SPD_ACTION_PROTECT,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200718 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 Rannsf16e9a52021-02-25 19:09:24 +0000726 config_tun_params(self.p_async, self.encryption_type, self.tun_if)
Neale Rannsfc811342021-02-26 10:35:33 +0000727
728 def test_dual_stream(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200729 """Alternating SAs"""
Neale Rannsf16e9a52021-02-25 19:09:24 +0000730 p = self.params[self.p_sync.addr_type]
731 self.vapi.ipsec_set_async_mode(async_enable=True)
Neale Rannsfc811342021-02-26 10:35:33 +0000732
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200733 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 Rannsfc811342021-02-26 10:35:33 +0000747 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 Kerhor0df06b62022-11-16 18:45:24 +0100754 if rx[ESP].spi == p.vpp_tun_spi:
Neale Rannsfc811342021-02-26 10:35:33 +0000755 decrypted = p.vpp_tun_sa.decrypt(rx[IP])
Neale Rannsf16e9a52021-02-25 19:09:24 +0000756 elif rx[ESP].spi == self.p_sync.vpp_tun_spi:
Arthur de Kerhor0df06b62022-11-16 18:45:24 +0100757 decrypted = self.p_sync.vpp_tun_sa.decrypt(rx[IP])
Neale Rannsfc811342021-02-26 10:35:33 +0000758 else:
759 rx.show()
760 self.assertTrue(False)
761
Neale Rannsf16e9a52021-02-25 19:09:24 +0000762 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 Sekerad9b0c6f2022-04-26 19:02:15 +0200769 """Alternating SAs sync/async/noop"""
Neale Rannsf16e9a52021-02-25 19:09:24 +0000770 p = self.params[self.p_sync.addr_type]
771
772 # first pin the default/noop SA to worker 0
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200773 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 Rannsf16e9a52021-02-25 19:09:24 +0000781 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 Sekerad9b0c6f2022-04-26 19:02:15 +0200788 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 Rannsf16e9a52021-02-25 19:09:24 +0000808 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 Kerhor0df06b62022-11-16 18:45:24 +0100815 if rx[ESP].spi == p.vpp_tun_spi:
Neale Rannsf16e9a52021-02-25 19:09:24 +0000816 decrypted = p.vpp_tun_sa.decrypt(rx[IP])
817 elif rx[ESP].spi == self.p_sync.vpp_tun_spi:
Arthur de Kerhor0df06b62022-11-16 18:45:24 +0100818 decrypted = self.p_sync.vpp_tun_sa.decrypt(rx[IP])
Neale Rannsf16e9a52021-02-25 19:09:24 +0000819 elif rx[ESP].spi == self.p_async.vpp_tun_spi:
Arthur de Kerhor0df06b62022-11-16 18:45:24 +0100820 decrypted = self.p_async.vpp_tun_sa.decrypt(rx[IP])
Neale Rannsf16e9a52021-02-25 19:09:24 +0000821 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 Rannsfc811342021-02-26 10:35:33 +0000830
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200831class TestIpsecEspHandoff(
832 TemplateIpsecEsp, IpsecTun6HandoffTests, IpsecTun4HandoffTests
833):
834 """Ipsec ESP - handoff tests"""
835
Neale Ranns4a56f4e2019-12-23 04:10:25 +0000836 pass
837
838
Neale Ranns4f33c802019-04-10 12:39:10 +0000839class TemplateIpsecEspUdp(ConfigIpsecESP):
Neale Ranns53f526b2019-02-25 14:32:02 +0000840 """
841 UDP encapped ESP
842 """
Paul Vinciguerra7f9b7f92019-03-12 19:23:27 -0700843
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 Ranns53f526b2019-02-25 14:32:02 +0000852 def setUp(self):
853 super(TemplateIpsecEspUdp, self).setUp()
Neale Ranns4f33c802019-04-10 12:39:10 +0000854 self.net_objs = []
Neale Ranns53f526b2019-02-25 14:32:02 +0000855 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 Sekerad9b0c6f2022-04-26 19:02:15 +0200860 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 Ranns53f526b2019-02-25 14:32:02 +0000864 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 Sekerad9b0c6f2022-04-26 19:02:15 +0200868 VppIpsecSpdItfBinding(self, self.tra_spd, self.tra_if).add_vpp_config()
Neale Ranns53f526b2019-02-25 14:32:02 +0000869
Neale Ranns4f33c802019-04-10 12:39:10 +0000870 self.config_esp_tra(p)
Neale Ranns2ac885c2019-03-20 18:24:43 +0000871 config_tra_params(p, self.encryption_type)
Neale Ranns53f526b2019-02-25 14:32:02 +0000872
873 self.tun_spd = VppIpsecSpd(self, self.tun_spd_id)
874 self.tun_spd.add_vpp_config()
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200875 VppIpsecSpdItfBinding(self, self.tun_spd, self.tun_if).add_vpp_config()
Neale Ranns53f526b2019-02-25 14:32:02 +0000876
Neale Ranns4f33c802019-04-10 12:39:10 +0000877 self.config_esp_tun(p)
Neale Ranns92e93842019-04-08 07:36:50 +0000878 self.logger.info(self.vapi.ppcli("show ipsec all"))
Neale Ranns53f526b2019-02-25 14:32:02 +0000879
880 d = DpoProto.DPO_PROTO_IP4
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200881 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 Ranns53f526b2019-02-25 14:32:02 +0000887
888 def tearDown(self):
889 super(TemplateIpsecEspUdp, self).tearDown()
Paul Vinciguerra90cf21b2019-03-13 09:23:05 -0700890
891 def show_commands_at_teardown(self):
892 self.logger.info(self.vapi.cli("show hardware"))
Neale Ranns53f526b2019-02-25 14:32:02 +0000893
894
Neale Ranns49e7ef62019-04-10 17:24:29 +0000895class TestIpsecEspUdp(TemplateIpsecEspUdp, IpsecTra4Tests):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200896 """Ipsec NAT-T ESP UDP tests"""
897
Neale Ranns53f526b2019-02-25 14:32:02 +0000898 pass
899
900
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200901class MyParameters:
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +0000902 def __init__(self):
Neale Ranns5b891102021-06-28 13:31:28 +0000903 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 Ranns4f33c802019-04-10 12:39:10 +0000907 # foreach crypto algorithm
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +0000908 self.algos = {
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200909 "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 Ganne84e66582023-03-10 17:33:03 +01001041 "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 Sekerad9b0c6f2022-04-26 19:02:15 +02001077 }
Neale Ranns4f33c802019-04-10 12:39:10 +00001078
Neale Ranns4f33c802019-04-10 12:39:10 +00001079
Dmitry Valter34fa0ce2024-03-11 10:38:46 +00001080@unittest.skipIf(
1081 "ping" in config.excluded_plugins, "Exclude tests requiring Ping plugin"
1082)
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001083class RunTestIpsecEspAll(ConfigIpsecESP, IpsecTra4, IpsecTra6, IpsecTun4, IpsecTun6):
1084 """Ipsec ESP all Algos"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001085
Neale Ranns8c609af2021-02-25 10:05:32 +00001086 @classmethod
1087 def setUpConstants(cls):
1088 test_args = str.split(cls.__doc__, " ")
1089 engine = test_args[0]
1090 if engine == "async":
Klement Sekera8d815022021-03-15 16:58:10 +01001091 cls.vpp_worker_count = 2
Neale Ranns8c609af2021-02-25 10:05:32 +00001092 super(RunTestIpsecEspAll, cls).setUpConstants()
1093
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001094 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 Sekerad9b0c6f2022-04-26 19:02:15 +02001101 if test_args[1] == "ESNon":
Neale Ranns5b891102021-06-28 13:31:28 +00001102 self.flag |= params.flags[1]
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001103 if test_args[2] == "ARon":
Neale Ranns5b891102021-06-28 13:31:28 +00001104 self.flag |= params.flags[2]
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001105
Neale Ranns5b891102021-06-28 13:31:28 +00001106 self.algo = params.algos[test_args[3]]
Neale Ranns8c609af2021-02-25 10:05:32 +00001107 self.async_mode = False
1108 if self.engine == "async":
1109 self.async_mode = True
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001110
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 Tehlarefcad1a2020-02-04 09:36:04 +00001117 def run_a_test(self, engine, flag, algo, payload_size=None):
Neale Ranns8c609af2021-02-25 10:05:32 +00001118 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 Yourtchenkofbc38892019-09-09 11:14:59 +00001122
Neale Ranns8c609af2021-02-25 10:05:32 +00001123 self.logger.info(self.vapi.cli("show crypto async status"))
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001124 self.ipv4_params = IPsecIPv4Params()
1125 self.ipv6_params = IPsecIPv6Params()
1126
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001127 self.params = {
1128 self.ipv4_params.addr_type: self.ipv4_params,
1129 self.ipv6_params.addr_type: self.ipv6_params,
1130 }
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001131
1132 for _, p in self.params.items():
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001133 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 Ranns5b891102021-06-28 13:31:28 +00001139 p.flags = flag
Neale Ranns9ec846c2021-02-09 14:04:02 +00001140 p.outer_flow_label = 243224
Neale Ranns8c609af2021-02-25 10:05:32 +00001141 p.async_mode = self.async_mode
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001142
1143 self.reporter.send_keep_alive(self)
1144
Neale Ranns4f33c802019-04-10 12:39:10 +00001145 #
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001146 # configure the SPDs. SAs, etc
Neale Ranns4f33c802019-04-10 12:39:10 +00001147 #
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001148 self.config_network(self.params.values())
Neale Ranns4f33c802019-04-10 12:39:10 +00001149
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001150 #
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 Sekerad9b0c6f2022-04-26 19:02:15 +02001157 self.verify_tun_66(self.params[socket.AF_INET6], count=NUM_PKTS)
Christian Hoppsfb7e7ed2019-11-03 07:02:15 -05001158 #
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 Sekerad9b0c6f2022-04-26 19:02:15 +02001165 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 Ranns4f33c802019-04-10 12:39:10 +00001169
Filip Tehlarefcad1a2020-02-04 09:36:04 +00001170 LARGE_PKT_SZ = [
Filip Tehlare4e8c6b2020-02-13 07:49:30 +00001171 1970, # results in 2 chained buffers entering decrypt node
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001172 # but leaving as simple buffer due to ICV removal (tra4)
PiotrX Kleskifdca4dd2020-05-05 14:14:22 +02001173 2004, # footer+ICV will be added to 2nd buffer (tun4)
Nathan Skrzypczak2c77ae42021-09-29 15:36:51 +02001174 4010, # ICV ends up splitted across 2 buffers in esp_decrypt
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001175 # for transport4; transport6 takes normal path
Filip Tehlarefcad1a2020-02-04 09:36:04 +00001176 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 Sekerad9b0c6f2022-04-26 19:02:15 +02001182 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 Tehlarefcad1a2020-02-04 09:36:04 +00001188
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001189 #
Neale Ranns5b891102021-06-28 13:31:28 +00001190 # 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 Peim0e2f1882022-12-22 11:26:57 +00001195 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 Ranns5b891102021-06-28 13:31:28 +00001205
1206 self.unconfig_network()
1207 self.config_network(self.params.values())
1208 self.verify_hi_seq_num()
Neale Rannse11203e2021-09-21 12:34:19 +00001209 self.unconfig_network()
1210 self.config_network(self.params.values())
1211 self.verify_tra_lost()
Neale Ranns5b891102021-06-28 13:31:28 +00001212
1213 #
Neale Rannsf16e9a52021-02-25 19:09:24 +00001214 # swap the handlers while SAs are up
1215 #
Neale Ranns5b891102021-06-28 13:31:28 +00001216 self.unconfig_network()
1217 self.config_network(self.params.values())
Neale Rannsf16e9a52021-02-25 19:09:24 +00001218 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 Yourtchenkofbc38892019-09-09 11:14:59 +00001223 self.unconfig_network()
juraj.linkes11057662019-07-08 10:22:55 +02001224
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001225
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001226#
1227# To generate test classes, do:
1228# grep '# GEN' test_ipsec_esp.py | sed -e 's/# GEN //g' | bash
1229#
Neale Ranns8c609af2021-02-25 10:05:32 +00001230# GEN for ENG in native ipsecmb openssl; do \
Neale Ranns5b891102021-06-28 13:31:28 +00001231# GEN for ESN in ESNon ESNoff; do for AR in ARon ARoff; do \
1232# GEN for ALG in AES-GCM-128/NONE \
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001233# 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 Ganne490b9272021-01-22 18:03:09 +01001235# GEN 3DES-CBC/SHA1-96 NONE/SHA1-96 \
Benoît Ganne84e66582023-03-10 17:33:03 +01001236# 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 Ranns5b891102021-06-28 13:31:28 +00001238# 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 Yourtchenkofbc38892019-09-09 11:14:59 +00001242# GEN echo " def test_ipsec(self):";
Neale Ranns5b891102021-06-28 13:31:28 +00001243# GEN echo ' """'$ENG $ESN $AR $ALG IPSec test'"""' ;
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001244# GEN echo " self.run_test()";
Neale Ranns5b891102021-06-28 13:31:28 +00001245# GEN done; done; done; done
Neale Ranns8c609af2021-02-25 10:05:32 +00001246#
Neale Ranns5b891102021-06-28 13:31:28 +00001247# GEN for ESN in ESNon ESNoff; do for AR in ARon ARoff; do \
1248# GEN for ALG in \
Neale Ranns8c609af2021-02-25 10:05:32 +00001249# 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 Ranns5b891102021-06-28 13:31:28 +00001251# 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 Ranns8c609af2021-02-25 10:05:32 +00001255# GEN echo " def test_ipsec(self):";
Neale Ranns5b891102021-06-28 13:31:28 +00001256# GEN echo ' """'async $ESN $AR $ALG IPSec test'"""' ;
Neale Ranns8c609af2021-02-25 10:05:32 +00001257# GEN echo " self.run_test()";
Neale Ranns5b891102021-06-28 13:31:28 +00001258# GEN done; done; done;
1259
1260
1261class Test_native_ESNon_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll):
1262 """native ESNon ARon AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001263
Neale Ranns5b891102021-06-28 13:31:28 +00001264 def test_ipsec(self):
1265 """native ESNon ARon AES-GCM-128/NONE IPSec test"""
1266 self.run_test()
1267
1268
1269class Test_native_ESNon_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll):
1270 """native ESNon ARon AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001271
Neale Ranns5b891102021-06-28 13:31:28 +00001272 def test_ipsec(self):
1273 """native ESNon ARon AES-GCM-192/NONE IPSec test"""
1274 self.run_test()
1275
1276
1277class Test_native_ESNon_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll):
1278 """native ESNon ARon AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001279
Neale Ranns5b891102021-06-28 13:31:28 +00001280 def test_ipsec(self):
1281 """native ESNon ARon AES-GCM-256/NONE IPSec test"""
1282 self.run_test()
1283
1284
1285class Test_native_ESNon_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
1286 """native ESNon ARon AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001287
Neale Ranns5b891102021-06-28 13:31:28 +00001288 def test_ipsec(self):
1289 """native ESNon ARon AES-CBC-128/MD5-96 IPSec test"""
1290 self.run_test()
1291
1292
1293class Test_native_ESNon_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
1294 """native ESNon ARon AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001295
Neale Ranns5b891102021-06-28 13:31:28 +00001296 def test_ipsec(self):
1297 """native ESNon ARon AES-CBC-192/SHA1-96 IPSec test"""
1298 self.run_test()
1299
1300
1301class Test_native_ESNon_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
1302 """native ESNon ARon AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001303
Neale Ranns5b891102021-06-28 13:31:28 +00001304 def test_ipsec(self):
1305 """native ESNon ARon AES-CBC-256/SHA1-96 IPSec test"""
1306 self.run_test()
1307
1308
1309class Test_native_ESNon_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
1310 """native ESNon ARon 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001311
Neale Ranns5b891102021-06-28 13:31:28 +00001312 def test_ipsec(self):
1313 """native ESNon ARon 3DES-CBC/SHA1-96 IPSec test"""
1314 self.run_test()
1315
1316
1317class Test_native_ESNon_ARon_NONE_SHA1_96(RunTestIpsecEspAll):
1318 """native ESNon ARon NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001319
Neale Ranns5b891102021-06-28 13:31:28 +00001320 def test_ipsec(self):
1321 """native ESNon ARon NONE/SHA1-96 IPSec test"""
1322 self.run_test()
1323
1324
1325class Test_native_ESNon_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
1326 """native ESNon ARon AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001327
Neale Ranns5b891102021-06-28 13:31:28 +00001328 def test_ipsec(self):
1329 """native ESNon ARon AES-CTR-128/SHA1-96 IPSec test"""
1330 self.run_test()
1331
1332
1333class Test_native_ESNon_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
1334 """native ESNon ARon AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001335
Neale Ranns5b891102021-06-28 13:31:28 +00001336 def test_ipsec(self):
1337 """native ESNon ARon AES-CTR-192/SHA1-96 IPSec test"""
1338 self.run_test()
1339
1340
1341class Test_native_ESNon_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
1342 """native ESNon ARon AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001343
Neale Ranns5b891102021-06-28 13:31:28 +00001344 def test_ipsec(self):
1345 """native ESNon ARon AES-CTR-256/SHA1-96 IPSec test"""
1346 self.run_test()
1347
1348
1349class Test_native_ESNon_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll):
1350 """native ESNon ARoff AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001351
Neale Ranns5b891102021-06-28 13:31:28 +00001352 def test_ipsec(self):
1353 """native ESNon ARoff AES-GCM-128/NONE IPSec test"""
1354 self.run_test()
1355
1356
1357class Test_native_ESNon_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll):
1358 """native ESNon ARoff AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001359
Neale Ranns5b891102021-06-28 13:31:28 +00001360 def test_ipsec(self):
1361 """native ESNon ARoff AES-GCM-192/NONE IPSec test"""
1362 self.run_test()
1363
1364
1365class Test_native_ESNon_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll):
1366 """native ESNon ARoff AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001367
Neale Ranns5b891102021-06-28 13:31:28 +00001368 def test_ipsec(self):
1369 """native ESNon ARoff AES-GCM-256/NONE IPSec test"""
1370 self.run_test()
1371
1372
1373class Test_native_ESNon_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
1374 """native ESNon ARoff AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001375
Neale Ranns5b891102021-06-28 13:31:28 +00001376 def test_ipsec(self):
1377 """native ESNon ARoff AES-CBC-128/MD5-96 IPSec test"""
1378 self.run_test()
1379
1380
1381class Test_native_ESNon_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
1382 """native ESNon ARoff AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001383
Neale Ranns5b891102021-06-28 13:31:28 +00001384 def test_ipsec(self):
1385 """native ESNon ARoff AES-CBC-192/SHA1-96 IPSec test"""
1386 self.run_test()
1387
1388
1389class Test_native_ESNon_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
1390 """native ESNon ARoff AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001391
Neale Ranns5b891102021-06-28 13:31:28 +00001392 def test_ipsec(self):
1393 """native ESNon ARoff AES-CBC-256/SHA1-96 IPSec test"""
1394 self.run_test()
1395
1396
1397class Test_native_ESNon_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
1398 """native ESNon ARoff 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001399
Neale Ranns5b891102021-06-28 13:31:28 +00001400 def test_ipsec(self):
1401 """native ESNon ARoff 3DES-CBC/SHA1-96 IPSec test"""
1402 self.run_test()
1403
1404
1405class Test_native_ESNon_ARoff_NONE_SHA1_96(RunTestIpsecEspAll):
1406 """native ESNon ARoff NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001407
Neale Ranns5b891102021-06-28 13:31:28 +00001408 def test_ipsec(self):
1409 """native ESNon ARoff NONE/SHA1-96 IPSec test"""
1410 self.run_test()
1411
1412
1413class Test_native_ESNon_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
1414 """native ESNon ARoff AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001415
Neale Ranns5b891102021-06-28 13:31:28 +00001416 def test_ipsec(self):
1417 """native ESNon ARoff AES-CTR-128/SHA1-96 IPSec test"""
1418 self.run_test()
1419
1420
1421class Test_native_ESNon_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
1422 """native ESNon ARoff AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001423
Neale Ranns5b891102021-06-28 13:31:28 +00001424 def test_ipsec(self):
1425 """native ESNon ARoff AES-CTR-192/SHA1-96 IPSec test"""
1426 self.run_test()
1427
1428
1429class Test_native_ESNon_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
1430 """native ESNon ARoff AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001431
Neale Ranns5b891102021-06-28 13:31:28 +00001432 def test_ipsec(self):
1433 """native ESNon ARoff AES-CTR-256/SHA1-96 IPSec test"""
1434 self.run_test()
1435
1436
1437class Test_native_ESNoff_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll):
1438 """native ESNoff ARon AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001439
Neale Ranns5b891102021-06-28 13:31:28 +00001440 def test_ipsec(self):
1441 """native ESNoff ARon AES-GCM-128/NONE IPSec test"""
1442 self.run_test()
1443
1444
1445class Test_native_ESNoff_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll):
1446 """native ESNoff ARon AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001447
Neale Ranns5b891102021-06-28 13:31:28 +00001448 def test_ipsec(self):
1449 """native ESNoff ARon AES-GCM-192/NONE IPSec test"""
1450 self.run_test()
1451
1452
1453class Test_native_ESNoff_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll):
1454 """native ESNoff ARon AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001455
Neale Ranns5b891102021-06-28 13:31:28 +00001456 def test_ipsec(self):
1457 """native ESNoff ARon AES-GCM-256/NONE IPSec test"""
1458 self.run_test()
1459
1460
1461class Test_native_ESNoff_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
1462 """native ESNoff ARon AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001463
Neale Ranns5b891102021-06-28 13:31:28 +00001464 def test_ipsec(self):
1465 """native ESNoff ARon AES-CBC-128/MD5-96 IPSec test"""
1466 self.run_test()
1467
1468
1469class Test_native_ESNoff_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
1470 """native ESNoff ARon AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001471
Neale Ranns5b891102021-06-28 13:31:28 +00001472 def test_ipsec(self):
1473 """native ESNoff ARon AES-CBC-192/SHA1-96 IPSec test"""
1474 self.run_test()
1475
1476
1477class Test_native_ESNoff_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
1478 """native ESNoff ARon AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001479
Neale Ranns5b891102021-06-28 13:31:28 +00001480 def test_ipsec(self):
1481 """native ESNoff ARon AES-CBC-256/SHA1-96 IPSec test"""
1482 self.run_test()
1483
1484
1485class Test_native_ESNoff_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
1486 """native ESNoff ARon 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001487
Neale Ranns5b891102021-06-28 13:31:28 +00001488 def test_ipsec(self):
1489 """native ESNoff ARon 3DES-CBC/SHA1-96 IPSec test"""
1490 self.run_test()
1491
1492
1493class Test_native_ESNoff_ARon_NONE_SHA1_96(RunTestIpsecEspAll):
1494 """native ESNoff ARon NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001495
Neale Ranns5b891102021-06-28 13:31:28 +00001496 def test_ipsec(self):
1497 """native ESNoff ARon NONE/SHA1-96 IPSec test"""
1498 self.run_test()
1499
1500
1501class Test_native_ESNoff_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
1502 """native ESNoff ARon AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001503
Neale Ranns5b891102021-06-28 13:31:28 +00001504 def test_ipsec(self):
1505 """native ESNoff ARon AES-CTR-128/SHA1-96 IPSec test"""
1506 self.run_test()
1507
1508
1509class Test_native_ESNoff_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
1510 """native ESNoff ARon AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001511
Neale Ranns5b891102021-06-28 13:31:28 +00001512 def test_ipsec(self):
1513 """native ESNoff ARon AES-CTR-192/SHA1-96 IPSec test"""
1514 self.run_test()
1515
1516
1517class Test_native_ESNoff_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
1518 """native ESNoff ARon AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001519
Neale Ranns5b891102021-06-28 13:31:28 +00001520 def test_ipsec(self):
1521 """native ESNoff ARon AES-CTR-256/SHA1-96 IPSec test"""
1522 self.run_test()
1523
1524
1525class Test_native_ESNoff_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll):
1526 """native ESNoff ARoff AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001527
Neale Ranns5b891102021-06-28 13:31:28 +00001528 def test_ipsec(self):
1529 """native ESNoff ARoff AES-GCM-128/NONE IPSec test"""
1530 self.run_test()
1531
1532
1533class Test_native_ESNoff_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll):
1534 """native ESNoff ARoff AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001535
Neale Ranns5b891102021-06-28 13:31:28 +00001536 def test_ipsec(self):
1537 """native ESNoff ARoff AES-GCM-192/NONE IPSec test"""
1538 self.run_test()
1539
1540
1541class Test_native_ESNoff_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll):
1542 """native ESNoff ARoff AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001543
Neale Ranns5b891102021-06-28 13:31:28 +00001544 def test_ipsec(self):
1545 """native ESNoff ARoff AES-GCM-256/NONE IPSec test"""
1546 self.run_test()
1547
1548
1549class Test_native_ESNoff_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
1550 """native ESNoff ARoff AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001551
Neale Ranns5b891102021-06-28 13:31:28 +00001552 def test_ipsec(self):
1553 """native ESNoff ARoff AES-CBC-128/MD5-96 IPSec test"""
1554 self.run_test()
1555
1556
1557class Test_native_ESNoff_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
1558 """native ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001559
Neale Ranns5b891102021-06-28 13:31:28 +00001560 def test_ipsec(self):
1561 """native ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test"""
1562 self.run_test()
1563
1564
1565class Test_native_ESNoff_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
1566 """native ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001567
Neale Ranns5b891102021-06-28 13:31:28 +00001568 def test_ipsec(self):
1569 """native ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test"""
1570 self.run_test()
1571
1572
1573class Test_native_ESNoff_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
1574 """native ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001575
Neale Ranns5b891102021-06-28 13:31:28 +00001576 def test_ipsec(self):
1577 """native ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test"""
1578 self.run_test()
1579
1580
1581class Test_native_ESNoff_ARoff_NONE_SHA1_96(RunTestIpsecEspAll):
1582 """native ESNoff ARoff NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001583
Neale Ranns5b891102021-06-28 13:31:28 +00001584 def test_ipsec(self):
1585 """native ESNoff ARoff NONE/SHA1-96 IPSec test"""
1586 self.run_test()
1587
1588
1589class Test_native_ESNoff_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
1590 """native ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001591
Neale Ranns5b891102021-06-28 13:31:28 +00001592 def test_ipsec(self):
1593 """native ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test"""
1594 self.run_test()
1595
1596
1597class Test_native_ESNoff_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
1598 """native ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001599
Neale Ranns5b891102021-06-28 13:31:28 +00001600 def test_ipsec(self):
1601 """native ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test"""
1602 self.run_test()
1603
1604
1605class Test_native_ESNoff_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
1606 """native ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001607
Neale Ranns5b891102021-06-28 13:31:28 +00001608 def test_ipsec(self):
1609 """native ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test"""
1610 self.run_test()
1611
1612
1613class Test_ipsecmb_ESNon_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll):
1614 """ipsecmb ESNon ARon AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001615
Neale Ranns5b891102021-06-28 13:31:28 +00001616 def test_ipsec(self):
1617 """ipsecmb ESNon ARon AES-GCM-128/NONE IPSec test"""
1618 self.run_test()
1619
1620
1621class Test_ipsecmb_ESNon_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll):
1622 """ipsecmb ESNon ARon AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001623
Neale Ranns5b891102021-06-28 13:31:28 +00001624 def test_ipsec(self):
1625 """ipsecmb ESNon ARon AES-GCM-192/NONE IPSec test"""
1626 self.run_test()
1627
1628
1629class Test_ipsecmb_ESNon_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll):
1630 """ipsecmb ESNon ARon AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001631
Neale Ranns5b891102021-06-28 13:31:28 +00001632 def test_ipsec(self):
1633 """ipsecmb ESNon ARon AES-GCM-256/NONE IPSec test"""
1634 self.run_test()
1635
1636
1637class Test_ipsecmb_ESNon_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
1638 """ipsecmb ESNon ARon AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001639
Neale Ranns5b891102021-06-28 13:31:28 +00001640 def test_ipsec(self):
1641 """ipsecmb ESNon ARon AES-CBC-128/MD5-96 IPSec test"""
1642 self.run_test()
1643
1644
1645class Test_ipsecmb_ESNon_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
1646 """ipsecmb ESNon ARon AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001647
Neale Ranns5b891102021-06-28 13:31:28 +00001648 def test_ipsec(self):
1649 """ipsecmb ESNon ARon AES-CBC-192/SHA1-96 IPSec test"""
1650 self.run_test()
1651
1652
1653class Test_ipsecmb_ESNon_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
1654 """ipsecmb ESNon ARon AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001655
Neale Ranns5b891102021-06-28 13:31:28 +00001656 def test_ipsec(self):
1657 """ipsecmb ESNon ARon AES-CBC-256/SHA1-96 IPSec test"""
1658 self.run_test()
1659
1660
1661class Test_ipsecmb_ESNon_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
1662 """ipsecmb ESNon ARon 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001663
Neale Ranns5b891102021-06-28 13:31:28 +00001664 def test_ipsec(self):
1665 """ipsecmb ESNon ARon 3DES-CBC/SHA1-96 IPSec test"""
1666 self.run_test()
1667
1668
1669class Test_ipsecmb_ESNon_ARon_NONE_SHA1_96(RunTestIpsecEspAll):
1670 """ipsecmb ESNon ARon NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001671
Neale Ranns5b891102021-06-28 13:31:28 +00001672 def test_ipsec(self):
1673 """ipsecmb ESNon ARon NONE/SHA1-96 IPSec test"""
1674 self.run_test()
1675
1676
1677class Test_ipsecmb_ESNon_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
1678 """ipsecmb ESNon ARon AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001679
Neale Ranns5b891102021-06-28 13:31:28 +00001680 def test_ipsec(self):
1681 """ipsecmb ESNon ARon AES-CTR-128/SHA1-96 IPSec test"""
1682 self.run_test()
1683
1684
1685class Test_ipsecmb_ESNon_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
1686 """ipsecmb ESNon ARon AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001687
Neale Ranns5b891102021-06-28 13:31:28 +00001688 def test_ipsec(self):
1689 """ipsecmb ESNon ARon AES-CTR-192/SHA1-96 IPSec test"""
1690 self.run_test()
1691
1692
1693class Test_ipsecmb_ESNon_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
1694 """ipsecmb ESNon ARon AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001695
Neale Ranns5b891102021-06-28 13:31:28 +00001696 def test_ipsec(self):
1697 """ipsecmb ESNon ARon AES-CTR-256/SHA1-96 IPSec test"""
1698 self.run_test()
1699
1700
1701class Test_ipsecmb_ESNon_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll):
1702 """ipsecmb ESNon ARoff AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001703
Neale Ranns5b891102021-06-28 13:31:28 +00001704 def test_ipsec(self):
1705 """ipsecmb ESNon ARoff AES-GCM-128/NONE IPSec test"""
1706 self.run_test()
1707
1708
1709class Test_ipsecmb_ESNon_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll):
1710 """ipsecmb ESNon ARoff AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001711
Neale Ranns5b891102021-06-28 13:31:28 +00001712 def test_ipsec(self):
1713 """ipsecmb ESNon ARoff AES-GCM-192/NONE IPSec test"""
1714 self.run_test()
1715
1716
1717class Test_ipsecmb_ESNon_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll):
1718 """ipsecmb ESNon ARoff AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001719
Neale Ranns5b891102021-06-28 13:31:28 +00001720 def test_ipsec(self):
1721 """ipsecmb ESNon ARoff AES-GCM-256/NONE IPSec test"""
1722 self.run_test()
1723
1724
1725class Test_ipsecmb_ESNon_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
1726 """ipsecmb ESNon ARoff AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001727
Neale Ranns5b891102021-06-28 13:31:28 +00001728 def test_ipsec(self):
1729 """ipsecmb ESNon ARoff AES-CBC-128/MD5-96 IPSec test"""
1730 self.run_test()
1731
1732
1733class Test_ipsecmb_ESNon_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
1734 """ipsecmb ESNon ARoff AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001735
Neale Ranns5b891102021-06-28 13:31:28 +00001736 def test_ipsec(self):
1737 """ipsecmb ESNon ARoff AES-CBC-192/SHA1-96 IPSec test"""
1738 self.run_test()
1739
1740
1741class Test_ipsecmb_ESNon_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
1742 """ipsecmb ESNon ARoff AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001743
Neale Ranns5b891102021-06-28 13:31:28 +00001744 def test_ipsec(self):
1745 """ipsecmb ESNon ARoff AES-CBC-256/SHA1-96 IPSec test"""
1746 self.run_test()
1747
1748
1749class Test_ipsecmb_ESNon_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
1750 """ipsecmb ESNon ARoff 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001751
Neale Ranns5b891102021-06-28 13:31:28 +00001752 def test_ipsec(self):
1753 """ipsecmb ESNon ARoff 3DES-CBC/SHA1-96 IPSec test"""
1754 self.run_test()
1755
1756
1757class Test_ipsecmb_ESNon_ARoff_NONE_SHA1_96(RunTestIpsecEspAll):
1758 """ipsecmb ESNon ARoff NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001759
Neale Ranns5b891102021-06-28 13:31:28 +00001760 def test_ipsec(self):
1761 """ipsecmb ESNon ARoff NONE/SHA1-96 IPSec test"""
1762 self.run_test()
1763
1764
1765class Test_ipsecmb_ESNon_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
1766 """ipsecmb ESNon ARoff AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001767
Neale Ranns5b891102021-06-28 13:31:28 +00001768 def test_ipsec(self):
1769 """ipsecmb ESNon ARoff AES-CTR-128/SHA1-96 IPSec test"""
1770 self.run_test()
1771
1772
1773class Test_ipsecmb_ESNon_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
1774 """ipsecmb ESNon ARoff AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001775
Neale Ranns5b891102021-06-28 13:31:28 +00001776 def test_ipsec(self):
1777 """ipsecmb ESNon ARoff AES-CTR-192/SHA1-96 IPSec test"""
1778 self.run_test()
1779
1780
1781class Test_ipsecmb_ESNon_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
1782 """ipsecmb ESNon ARoff AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001783
Neale Ranns5b891102021-06-28 13:31:28 +00001784 def test_ipsec(self):
1785 """ipsecmb ESNon ARoff AES-CTR-256/SHA1-96 IPSec test"""
1786 self.run_test()
1787
1788
1789class Test_ipsecmb_ESNoff_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll):
1790 """ipsecmb ESNoff ARon AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001791
Neale Ranns5b891102021-06-28 13:31:28 +00001792 def test_ipsec(self):
1793 """ipsecmb ESNoff ARon AES-GCM-128/NONE IPSec test"""
1794 self.run_test()
1795
1796
1797class Test_ipsecmb_ESNoff_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll):
1798 """ipsecmb ESNoff ARon AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001799
Neale Ranns5b891102021-06-28 13:31:28 +00001800 def test_ipsec(self):
1801 """ipsecmb ESNoff ARon AES-GCM-192/NONE IPSec test"""
1802 self.run_test()
1803
1804
1805class Test_ipsecmb_ESNoff_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll):
1806 """ipsecmb ESNoff ARon AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001807
Neale Ranns5b891102021-06-28 13:31:28 +00001808 def test_ipsec(self):
1809 """ipsecmb ESNoff ARon AES-GCM-256/NONE IPSec test"""
1810 self.run_test()
1811
1812
1813class Test_ipsecmb_ESNoff_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
1814 """ipsecmb ESNoff ARon AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001815
Neale Ranns5b891102021-06-28 13:31:28 +00001816 def test_ipsec(self):
1817 """ipsecmb ESNoff ARon AES-CBC-128/MD5-96 IPSec test"""
1818 self.run_test()
1819
1820
1821class Test_ipsecmb_ESNoff_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
1822 """ipsecmb ESNoff ARon AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001823
Neale Ranns5b891102021-06-28 13:31:28 +00001824 def test_ipsec(self):
1825 """ipsecmb ESNoff ARon AES-CBC-192/SHA1-96 IPSec test"""
1826 self.run_test()
1827
1828
1829class Test_ipsecmb_ESNoff_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
1830 """ipsecmb ESNoff ARon AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001831
Neale Ranns5b891102021-06-28 13:31:28 +00001832 def test_ipsec(self):
1833 """ipsecmb ESNoff ARon AES-CBC-256/SHA1-96 IPSec test"""
1834 self.run_test()
1835
1836
1837class Test_ipsecmb_ESNoff_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
1838 """ipsecmb ESNoff ARon 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001839
Neale Ranns5b891102021-06-28 13:31:28 +00001840 def test_ipsec(self):
1841 """ipsecmb ESNoff ARon 3DES-CBC/SHA1-96 IPSec test"""
1842 self.run_test()
1843
1844
1845class Test_ipsecmb_ESNoff_ARon_NONE_SHA1_96(RunTestIpsecEspAll):
1846 """ipsecmb ESNoff ARon NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001847
Neale Ranns5b891102021-06-28 13:31:28 +00001848 def test_ipsec(self):
1849 """ipsecmb ESNoff ARon NONE/SHA1-96 IPSec test"""
1850 self.run_test()
1851
1852
1853class Test_ipsecmb_ESNoff_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
1854 """ipsecmb ESNoff ARon AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001855
Neale Ranns5b891102021-06-28 13:31:28 +00001856 def test_ipsec(self):
1857 """ipsecmb ESNoff ARon AES-CTR-128/SHA1-96 IPSec test"""
1858 self.run_test()
1859
1860
1861class Test_ipsecmb_ESNoff_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
1862 """ipsecmb ESNoff ARon AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001863
Neale Ranns5b891102021-06-28 13:31:28 +00001864 def test_ipsec(self):
1865 """ipsecmb ESNoff ARon AES-CTR-192/SHA1-96 IPSec test"""
1866 self.run_test()
Neale Ranns4f33c802019-04-10 12:39:10 +00001867
Neale Ranns4f33c802019-04-10 12:39:10 +00001868
Neale Ranns5b891102021-06-28 13:31:28 +00001869class Test_ipsecmb_ESNoff_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
1870 """ipsecmb ESNoff ARon AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001871
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001872 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001873 """ipsecmb ESNoff ARon AES-CTR-256/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001874 self.run_test()
Neale Ranns4f33c802019-04-10 12:39:10 +00001875
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001876
Neale Ranns5b891102021-06-28 13:31:28 +00001877class Test_ipsecmb_ESNoff_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll):
1878 """ipsecmb ESNoff ARoff AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001879
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001880 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001881 """ipsecmb ESNoff ARoff AES-GCM-128/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001882 self.run_test()
1883
1884
Neale Ranns5b891102021-06-28 13:31:28 +00001885class Test_ipsecmb_ESNoff_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll):
1886 """ipsecmb ESNoff ARoff AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001887
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001888 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001889 """ipsecmb ESNoff ARoff AES-GCM-192/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001890 self.run_test()
1891
1892
Neale Ranns5b891102021-06-28 13:31:28 +00001893class Test_ipsecmb_ESNoff_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll):
1894 """ipsecmb ESNoff ARoff AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001895
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001896 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001897 """ipsecmb ESNoff ARoff AES-GCM-256/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001898 self.run_test()
1899
1900
Neale Ranns5b891102021-06-28 13:31:28 +00001901class Test_ipsecmb_ESNoff_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
1902 """ipsecmb ESNoff ARoff AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001903
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001904 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001905 """ipsecmb ESNoff ARoff AES-CBC-128/MD5-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001906 self.run_test()
1907
1908
Neale Ranns5b891102021-06-28 13:31:28 +00001909class Test_ipsecmb_ESNoff_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
1910 """ipsecmb ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001911
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001912 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001913 """ipsecmb ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001914 self.run_test()
1915
1916
Neale Ranns5b891102021-06-28 13:31:28 +00001917class Test_ipsecmb_ESNoff_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
1918 """ipsecmb ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001919
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001920 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001921 """ipsecmb ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001922 self.run_test()
1923
1924
Neale Ranns5b891102021-06-28 13:31:28 +00001925class Test_ipsecmb_ESNoff_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
1926 """ipsecmb ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001927
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001928 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001929 """ipsecmb ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001930 self.run_test()
1931
1932
Neale Ranns5b891102021-06-28 13:31:28 +00001933class Test_ipsecmb_ESNoff_ARoff_NONE_SHA1_96(RunTestIpsecEspAll):
1934 """ipsecmb ESNoff ARoff NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001935
Benoît Ganne490b9272021-01-22 18:03:09 +01001936 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001937 """ipsecmb ESNoff ARoff NONE/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01001938 self.run_test()
1939
1940
Neale Ranns5b891102021-06-28 13:31:28 +00001941class Test_ipsecmb_ESNoff_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
1942 """ipsecmb ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001943
Benoît Ganne490b9272021-01-22 18:03:09 +01001944 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001945 """ipsecmb ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01001946 self.run_test()
1947
1948
Neale Ranns5b891102021-06-28 13:31:28 +00001949class Test_ipsecmb_ESNoff_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
1950 """ipsecmb ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001951
Benoît Ganne490b9272021-01-22 18:03:09 +01001952 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001953 """ipsecmb ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01001954 self.run_test()
1955
1956
Neale Ranns5b891102021-06-28 13:31:28 +00001957class Test_ipsecmb_ESNoff_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
1958 """ipsecmb ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001959
Neale Ranns9c23ff82021-06-25 13:30:50 +00001960 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001961 """ipsecmb ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00001962 self.run_test()
1963
1964
Neale Ranns5b891102021-06-28 13:31:28 +00001965class Test_openssl_ESNon_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll):
1966 """openssl ESNon ARon AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001967
Neale Ranns9c23ff82021-06-25 13:30:50 +00001968 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001969 """openssl ESNon ARon AES-GCM-128/NONE IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00001970 self.run_test()
1971
1972
Neale Ranns5b891102021-06-28 13:31:28 +00001973class Test_openssl_ESNon_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll):
1974 """openssl ESNon ARon AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001975
Neale Ranns9c23ff82021-06-25 13:30:50 +00001976 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001977 """openssl ESNon ARon AES-GCM-192/NONE IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00001978 self.run_test()
1979
1980
Neale Ranns5b891102021-06-28 13:31:28 +00001981class Test_openssl_ESNon_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll):
1982 """openssl ESNon ARon AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001983
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001984 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001985 """openssl ESNon ARon AES-GCM-256/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001986 self.run_test()
1987
1988
Neale Ranns5b891102021-06-28 13:31:28 +00001989class Test_openssl_ESNon_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
1990 """openssl ESNon ARon AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001991
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001992 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00001993 """openssl ESNon ARon AES-CBC-128/MD5-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00001994 self.run_test()
1995
1996
Neale Ranns5b891102021-06-28 13:31:28 +00001997class Test_openssl_ESNon_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
1998 """openssl ESNon ARon AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02001999
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002000 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002001 """openssl ESNon ARon AES-CBC-192/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002002 self.run_test()
2003
2004
Neale Ranns5b891102021-06-28 13:31:28 +00002005class Test_openssl_ESNon_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
2006 """openssl ESNon ARon AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002007
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002008 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002009 """openssl ESNon ARon AES-CBC-256/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002010 self.run_test()
2011
2012
Neale Ranns5b891102021-06-28 13:31:28 +00002013class Test_openssl_ESNon_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
2014 """openssl ESNon ARon 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002015
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002016 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002017 """openssl ESNon ARon 3DES-CBC/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002018 self.run_test()
2019
2020
Neale Ranns5b891102021-06-28 13:31:28 +00002021class Test_openssl_ESNon_ARon_NONE_SHA1_96(RunTestIpsecEspAll):
2022 """openssl ESNon ARon NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002023
Benoît Ganne490b9272021-01-22 18:03:09 +01002024 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002025 """openssl ESNon ARon NONE/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002026 self.run_test()
2027
2028
Neale Ranns5b891102021-06-28 13:31:28 +00002029class Test_openssl_ESNon_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
2030 """openssl ESNon ARon AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002031
Benoît Ganne490b9272021-01-22 18:03:09 +01002032 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002033 """openssl ESNon ARon AES-CTR-128/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002034 self.run_test()
2035
2036
Neale Ranns5b891102021-06-28 13:31:28 +00002037class Test_openssl_ESNon_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
2038 """openssl ESNon ARon AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002039
Benoît Ganne490b9272021-01-22 18:03:09 +01002040 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002041 """openssl ESNon ARon AES-CTR-192/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002042 self.run_test()
2043
2044
Neale Ranns5b891102021-06-28 13:31:28 +00002045class Test_openssl_ESNon_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
2046 """openssl ESNon ARon AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002047
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002048 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002049 """openssl ESNon ARon AES-CTR-256/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002050 self.run_test()
2051
2052
Benoît Ganne84e66582023-03-10 17:33:03 +01002053class 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
2061class 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
2069class 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 Ranns5b891102021-06-28 13:31:28 +00002077class Test_openssl_ESNon_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll):
2078 """openssl ESNon ARoff AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002079
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002080 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002081 """openssl ESNon ARoff AES-GCM-128/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002082 self.run_test()
2083
2084
Neale Ranns5b891102021-06-28 13:31:28 +00002085class Test_openssl_ESNon_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll):
2086 """openssl ESNon ARoff AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002087
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002088 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002089 """openssl ESNon ARoff AES-GCM-192/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002090 self.run_test()
2091
2092
Neale Ranns5b891102021-06-28 13:31:28 +00002093class Test_openssl_ESNon_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll):
2094 """openssl ESNon ARoff AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002095
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002096 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002097 """openssl ESNon ARoff AES-GCM-256/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002098 self.run_test()
2099
2100
Neale Ranns5b891102021-06-28 13:31:28 +00002101class Test_openssl_ESNon_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
2102 """openssl ESNon ARoff AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002103
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002104 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002105 """openssl ESNon ARoff AES-CBC-128/MD5-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002106 self.run_test()
2107
2108
Neale Ranns5b891102021-06-28 13:31:28 +00002109class Test_openssl_ESNon_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
2110 """openssl ESNon ARoff AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002111
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002112 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002113 """openssl ESNon ARoff AES-CBC-192/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002114 self.run_test()
2115
2116
Neale Ranns5b891102021-06-28 13:31:28 +00002117class Test_openssl_ESNon_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
2118 """openssl ESNon ARoff AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002119
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002120 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002121 """openssl ESNon ARoff AES-CBC-256/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002122 self.run_test()
2123
2124
Neale Ranns5b891102021-06-28 13:31:28 +00002125class Test_openssl_ESNon_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
2126 """openssl ESNon ARoff 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002127
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002128 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002129 """openssl ESNon ARoff 3DES-CBC/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002130 self.run_test()
2131
2132
Neale Ranns5b891102021-06-28 13:31:28 +00002133class Test_openssl_ESNon_ARoff_NONE_SHA1_96(RunTestIpsecEspAll):
2134 """openssl ESNon ARoff NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002135
Benoît Ganne490b9272021-01-22 18:03:09 +01002136 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002137 """openssl ESNon ARoff NONE/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002138 self.run_test()
2139
2140
Neale Ranns5b891102021-06-28 13:31:28 +00002141class Test_openssl_ESNon_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
2142 """openssl ESNon ARoff AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002143
Benoît Ganne490b9272021-01-22 18:03:09 +01002144 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002145 """openssl ESNon ARoff AES-CTR-128/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002146 self.run_test()
2147
2148
Neale Ranns5b891102021-06-28 13:31:28 +00002149class Test_openssl_ESNon_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
2150 """openssl ESNon ARoff AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002151
Benoît Ganne490b9272021-01-22 18:03:09 +01002152 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002153 """openssl ESNon ARoff AES-CTR-192/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002154 self.run_test()
2155
2156
Neale Ranns5b891102021-06-28 13:31:28 +00002157class Test_openssl_ESNon_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
2158 """openssl ESNon ARoff AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002159
Neale Ranns9c23ff82021-06-25 13:30:50 +00002160 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002161 """openssl ESNon ARoff AES-CTR-256/SHA1-96 IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00002162 self.run_test()
2163
2164
Benoît Ganne84e66582023-03-10 17:33:03 +01002165class 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
2173class 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
2181class 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 Ranns5b891102021-06-28 13:31:28 +00002189class Test_openssl_ESNoff_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll):
2190 """openssl ESNoff ARon AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002191
Neale Ranns9c23ff82021-06-25 13:30:50 +00002192 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002193 """openssl ESNoff ARon AES-GCM-128/NONE IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00002194 self.run_test()
2195
2196
Neale Ranns5b891102021-06-28 13:31:28 +00002197class Test_openssl_ESNoff_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll):
2198 """openssl ESNoff ARon AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002199
Neale Ranns9c23ff82021-06-25 13:30:50 +00002200 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002201 """openssl ESNoff ARon AES-GCM-192/NONE IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00002202 self.run_test()
2203
2204
Neale Ranns5b891102021-06-28 13:31:28 +00002205class Test_openssl_ESNoff_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll):
2206 """openssl ESNoff ARon AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002207
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002208 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002209 """openssl ESNoff ARon AES-GCM-256/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002210 self.run_test()
2211
2212
Neale Ranns5b891102021-06-28 13:31:28 +00002213class Test_openssl_ESNoff_ARon_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
2214 """openssl ESNoff ARon AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002215
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002216 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002217 """openssl ESNoff ARon AES-CBC-128/MD5-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002218 self.run_test()
2219
2220
Neale Ranns5b891102021-06-28 13:31:28 +00002221class Test_openssl_ESNoff_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
2222 """openssl ESNoff ARon AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002223
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002224 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002225 """openssl ESNoff ARon AES-CBC-192/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002226 self.run_test()
2227
2228
Neale Ranns5b891102021-06-28 13:31:28 +00002229class Test_openssl_ESNoff_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
2230 """openssl ESNoff ARon AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002231
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002232 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002233 """openssl ESNoff ARon AES-CBC-256/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002234 self.run_test()
2235
2236
Neale Ranns5b891102021-06-28 13:31:28 +00002237class Test_openssl_ESNoff_ARon_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
2238 """openssl ESNoff ARon 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002239
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002240 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002241 """openssl ESNoff ARon 3DES-CBC/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002242 self.run_test()
2243
2244
Neale Ranns5b891102021-06-28 13:31:28 +00002245class Test_openssl_ESNoff_ARon_NONE_SHA1_96(RunTestIpsecEspAll):
2246 """openssl ESNoff ARon NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002247
Benoît Ganne490b9272021-01-22 18:03:09 +01002248 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002249 """openssl ESNoff ARon NONE/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002250 self.run_test()
2251
2252
Neale Ranns5b891102021-06-28 13:31:28 +00002253class Test_openssl_ESNoff_ARon_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
2254 """openssl ESNoff ARon AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002255
Benoît Ganne490b9272021-01-22 18:03:09 +01002256 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002257 """openssl ESNoff ARon AES-CTR-128/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002258 self.run_test()
2259
2260
Neale Ranns5b891102021-06-28 13:31:28 +00002261class Test_openssl_ESNoff_ARon_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
2262 """openssl ESNoff ARon AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002263
Benoît Ganne490b9272021-01-22 18:03:09 +01002264 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002265 """openssl ESNoff ARon AES-CTR-192/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002266 self.run_test()
2267
2268
Neale Ranns5b891102021-06-28 13:31:28 +00002269class Test_openssl_ESNoff_ARon_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
2270 """openssl ESNoff ARon AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002271
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002272 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002273 """openssl ESNoff ARon AES-CTR-256/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002274 self.run_test()
2275
2276
Benoît Ganne84e66582023-03-10 17:33:03 +01002277class 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
2285class 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
2293class 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 Ranns5b891102021-06-28 13:31:28 +00002301class Test_openssl_ESNoff_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll):
2302 """openssl ESNoff ARoff AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002303
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002304 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002305 """openssl ESNoff ARoff AES-GCM-128/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002306 self.run_test()
2307
2308
Neale Ranns5b891102021-06-28 13:31:28 +00002309class Test_openssl_ESNoff_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll):
2310 """openssl ESNoff ARoff AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002311
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002312 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002313 """openssl ESNoff ARoff AES-GCM-192/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002314 self.run_test()
2315
2316
Neale Ranns5b891102021-06-28 13:31:28 +00002317class Test_openssl_ESNoff_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll):
2318 """openssl ESNoff ARoff AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002319
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002320 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002321 """openssl ESNoff ARoff AES-GCM-256/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002322 self.run_test()
2323
2324
Neale Ranns5b891102021-06-28 13:31:28 +00002325class Test_openssl_ESNoff_ARoff_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
2326 """openssl ESNoff ARoff AES-CBC-128/MD5-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002327
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002328 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002329 """openssl ESNoff ARoff AES-CBC-128/MD5-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002330 self.run_test()
2331
2332
Neale Ranns5b891102021-06-28 13:31:28 +00002333class Test_openssl_ESNoff_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
2334 """openssl ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002335
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002336 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002337 """openssl ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002338 self.run_test()
2339
2340
Neale Ranns5b891102021-06-28 13:31:28 +00002341class Test_openssl_ESNoff_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
2342 """openssl ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002343
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002344 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002345 """openssl ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002346 self.run_test()
2347
2348
Neale Ranns5b891102021-06-28 13:31:28 +00002349class Test_openssl_ESNoff_ARoff_3DES_CBC_SHA1_96(RunTestIpsecEspAll):
2350 """openssl ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002351
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002352 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002353 """openssl ESNoff ARoff 3DES-CBC/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002354 self.run_test()
2355
2356
Neale Ranns5b891102021-06-28 13:31:28 +00002357class Test_openssl_ESNoff_ARoff_NONE_SHA1_96(RunTestIpsecEspAll):
2358 """openssl ESNoff ARoff NONE/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002359
Benoît Ganne490b9272021-01-22 18:03:09 +01002360 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002361 """openssl ESNoff ARoff NONE/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002362 self.run_test()
2363
2364
Neale Ranns5b891102021-06-28 13:31:28 +00002365class Test_openssl_ESNoff_ARoff_AES_CTR_128_SHA1_96(RunTestIpsecEspAll):
2366 """openssl ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002367
Benoît Ganne490b9272021-01-22 18:03:09 +01002368 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002369 """openssl ESNoff ARoff AES-CTR-128/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002370 self.run_test()
2371
2372
Neale Ranns5b891102021-06-28 13:31:28 +00002373class Test_openssl_ESNoff_ARoff_AES_CTR_192_SHA1_96(RunTestIpsecEspAll):
2374 """openssl ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002375
Benoît Ganne490b9272021-01-22 18:03:09 +01002376 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002377 """openssl ESNoff ARoff AES-CTR-192/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002378 self.run_test()
2379
2380
Neale Ranns5b891102021-06-28 13:31:28 +00002381class Test_openssl_ESNoff_ARoff_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
2382 """openssl ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002383
Neale Ranns9c23ff82021-06-25 13:30:50 +00002384 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002385 """openssl ESNoff ARoff AES-CTR-256/SHA1-96 IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00002386 self.run_test()
2387
2388
Benoît Ganne84e66582023-03-10 17:33:03 +01002389class 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
2397class 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
2405class 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 Ranns5b891102021-06-28 13:31:28 +00002413class Test_async_ESNon_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll):
2414 """async ESNon ARon AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002415
Neale Ranns9c23ff82021-06-25 13:30:50 +00002416 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002417 """async ESNon ARon AES-GCM-128/NONE IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00002418 self.run_test()
2419
2420
Neale Ranns5b891102021-06-28 13:31:28 +00002421class Test_async_ESNon_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll):
2422 """async ESNon ARon AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002423
Neale Ranns9c23ff82021-06-25 13:30:50 +00002424 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002425 """async ESNon ARon AES-GCM-192/NONE IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00002426 self.run_test()
2427
2428
Neale Ranns5b891102021-06-28 13:31:28 +00002429class Test_async_ESNon_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll):
2430 """async ESNon ARon AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002431
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002432 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002433 """async ESNon ARon AES-GCM-256/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002434 self.run_test()
2435
2436
Neale Ranns5b891102021-06-28 13:31:28 +00002437class Test_async_ESNon_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
2438 """async ESNon ARon AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002439
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002440 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002441 """async ESNon ARon AES-CBC-192/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002442 self.run_test()
2443
2444
Neale Ranns5b891102021-06-28 13:31:28 +00002445class Test_async_ESNon_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
2446 """async ESNon ARon AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002447
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002448 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002449 """async ESNon ARon AES-CBC-256/SHA1-96 IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002450 self.run_test()
2451
2452
Neale Ranns5b891102021-06-28 13:31:28 +00002453class Test_async_ESNon_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll):
2454 """async ESNon ARoff AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002455
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002456 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002457 """async ESNon ARoff AES-GCM-128/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002458 self.run_test()
2459
2460
Neale Ranns5b891102021-06-28 13:31:28 +00002461class Test_async_ESNon_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll):
2462 """async ESNon ARoff AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002463
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002464 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002465 """async ESNon ARoff AES-GCM-192/NONE IPSec test"""
Andrew Yourtchenkofbc38892019-09-09 11:14:59 +00002466 self.run_test()
Neale Ranns6afaae12019-07-17 15:07:14 +00002467
Neale Ranns4f33c802019-04-10 12:39:10 +00002468
Neale Ranns5b891102021-06-28 13:31:28 +00002469class Test_async_ESNon_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll):
2470 """async ESNon ARoff AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002471
Benoît Ganne490b9272021-01-22 18:03:09 +01002472 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002473 """async ESNon ARoff AES-GCM-256/NONE IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002474 self.run_test()
2475
2476
Neale Ranns5b891102021-06-28 13:31:28 +00002477class Test_async_ESNon_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
2478 """async ESNon ARoff AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002479
Benoît Ganne490b9272021-01-22 18:03:09 +01002480 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002481 """async ESNon ARoff AES-CBC-192/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002482 self.run_test()
2483
2484
Neale Ranns5b891102021-06-28 13:31:28 +00002485class Test_async_ESNon_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
2486 """async ESNon ARoff AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002487
Benoît Ganne490b9272021-01-22 18:03:09 +01002488 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002489 """async ESNon ARoff AES-CBC-256/SHA1-96 IPSec test"""
Benoît Ganne490b9272021-01-22 18:03:09 +01002490 self.run_test()
2491
2492
Neale Ranns5b891102021-06-28 13:31:28 +00002493class Test_async_ESNoff_ARon_AES_GCM_128_NONE(RunTestIpsecEspAll):
2494 """async ESNoff ARon AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002495
Neale Ranns8c609af2021-02-25 10:05:32 +00002496 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002497 """async ESNoff ARon AES-GCM-128/NONE IPSec test"""
Neale Ranns8c609af2021-02-25 10:05:32 +00002498 self.run_test()
2499
2500
Neale Ranns5b891102021-06-28 13:31:28 +00002501class Test_async_ESNoff_ARon_AES_GCM_192_NONE(RunTestIpsecEspAll):
2502 """async ESNoff ARon AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002503
Neale Ranns8c609af2021-02-25 10:05:32 +00002504 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002505 """async ESNoff ARon AES-GCM-192/NONE IPSec test"""
Neale Ranns8c609af2021-02-25 10:05:32 +00002506 self.run_test()
2507
2508
Neale Ranns5b891102021-06-28 13:31:28 +00002509class Test_async_ESNoff_ARon_AES_GCM_256_NONE(RunTestIpsecEspAll):
2510 """async ESNoff ARon AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002511
Neale Ranns8c609af2021-02-25 10:05:32 +00002512 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002513 """async ESNoff ARon AES-GCM-256/NONE IPSec test"""
Neale Ranns8c609af2021-02-25 10:05:32 +00002514 self.run_test()
2515
2516
Neale Ranns5b891102021-06-28 13:31:28 +00002517class Test_async_ESNoff_ARon_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
2518 """async ESNoff ARon AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002519
Neale Ranns8c609af2021-02-25 10:05:32 +00002520 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002521 """async ESNoff ARon AES-CBC-192/SHA1-96 IPSec test"""
Neale Ranns8c609af2021-02-25 10:05:32 +00002522 self.run_test()
2523
2524
Neale Ranns5b891102021-06-28 13:31:28 +00002525class Test_async_ESNoff_ARon_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
2526 """async ESNoff ARon AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002527
Neale Ranns8c609af2021-02-25 10:05:32 +00002528 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002529 """async ESNoff ARon AES-CBC-256/SHA1-96 IPSec test"""
Neale Ranns8c609af2021-02-25 10:05:32 +00002530 self.run_test()
2531
2532
Neale Ranns5b891102021-06-28 13:31:28 +00002533class Test_async_ESNoff_ARoff_AES_GCM_128_NONE(RunTestIpsecEspAll):
2534 """async ESNoff ARoff AES-GCM-128/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002535
Neale Ranns9c23ff82021-06-25 13:30:50 +00002536 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002537 """async ESNoff ARoff AES-GCM-128/NONE IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00002538 self.run_test()
2539
2540
Neale Ranns5b891102021-06-28 13:31:28 +00002541class Test_async_ESNoff_ARoff_AES_GCM_192_NONE(RunTestIpsecEspAll):
2542 """async ESNoff ARoff AES-GCM-192/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002543
Neale Ranns9c23ff82021-06-25 13:30:50 +00002544 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002545 """async ESNoff ARoff AES-GCM-192/NONE IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00002546 self.run_test()
2547
2548
Neale Ranns5b891102021-06-28 13:31:28 +00002549class Test_async_ESNoff_ARoff_AES_GCM_256_NONE(RunTestIpsecEspAll):
2550 """async ESNoff ARoff AES-GCM-256/NONE IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002551
Neale Ranns9c23ff82021-06-25 13:30:50 +00002552 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002553 """async ESNoff ARoff AES-GCM-256/NONE IPSec test"""
Neale Ranns9c23ff82021-06-25 13:30:50 +00002554 self.run_test()
2555
2556
Neale Ranns5b891102021-06-28 13:31:28 +00002557class Test_async_ESNoff_ARoff_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
2558 """async ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002559
Neale Ranns8c609af2021-02-25 10:05:32 +00002560 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002561 """async ESNoff ARoff AES-CBC-192/SHA1-96 IPSec test"""
Neale Ranns8c609af2021-02-25 10:05:32 +00002562 self.run_test()
2563
2564
Neale Ranns5b891102021-06-28 13:31:28 +00002565class Test_async_ESNoff_ARoff_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
2566 """async ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test"""
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02002567
Neale Ranns8c609af2021-02-25 10:05:32 +00002568 def test_ipsec(self):
Neale Ranns5b891102021-06-28 13:31:28 +00002569 """async ESNoff ARoff AES-CBC-256/SHA1-96 IPSec test"""
Neale Ranns8c609af2021-02-25 10:05:32 +00002570 self.run_test()