summaryrefslogtreecommitdiffstats
path: root/test/test_ipsec_esp.py
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-06-25 13:30:50 +0000
committerMatthew Smith <mgsmith@netgate.com>2021-06-28 13:32:40 +0000
commit9c23ff8c8ab2ba881540a1c9c6d331d2ed6c8c6a (patch)
treeb51b465b056c87d845e5778c013d9055bcc2d4a3 /test/test_ipsec_esp.py
parentdabdc197981a49eac54bb43238f4ebd31075622a (diff)
ipsec: Enable the extended Sequence Number IPSec tests for GCM
Type: test Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: Ie691b1c8841f5e195525bfff990f12ab918ba394
Diffstat (limited to 'test/test_ipsec_esp.py')
-rw-r--r--test/test_ipsec_esp.py74
1 files changed, 72 insertions, 2 deletions
diff --git a/test/test_ipsec_esp.py b/test/test_ipsec_esp.py
index 95703f5a076..41ac56efafd 100644
--- a/test/test_ipsec_esp.py
+++ b/test/test_ipsec_esp.py
@@ -977,7 +977,6 @@ class RunTestIpsecEspAll(ConfigIpsecESP,
# GEN AES-CBC-192/SHA1-96 AES-CBC-256/SHA1-96 \
# GEN 3DES-CBC/SHA1-96 NONE/SHA1-96 \
# GEN AES-CTR-128/SHA1-96 AES-CTR-192/SHA1-96 AES-CTR-256/SHA1-96; do \
-# GEN [[ ${FLG} == "ESN" && ${ALG} == *"NONE" ]] && continue
# GEN echo -e "\n\nclass Test_${ENG}_${FLG}_${ALG}(RunTestIpsecEspAll):" |
# GEN sed -e 's/-/_/g' -e 's#/#_#g' ; \
# GEN echo ' """'$ENG $FLG $ALG IPSec test'"""' ;
@@ -988,7 +987,6 @@ class RunTestIpsecEspAll(ConfigIpsecESP,
# GEN for FLG in noESN ESN; do for ALG in \
# GEN AES-GCM-128/NONE AES-GCM-192/NONE AES-GCM-256/NONE \
# GEN AES-CBC-192/SHA1-96 AES-CBC-256/SHA1-96; do \
-# GEN [[ ${FLG} == "ESN" && ${ALG} == *"NONE" ]] && continue
# GEN echo -e "\n\nclass Test_async_${FLG}_${ALG}(RunTestIpsecEspAll):" |
# GEN sed -e 's/-/_/g' -e 's#/#_#g' ; \
# GEN echo ' """'async $FLG $ALG IPSec test'"""' ;
@@ -1063,6 +1061,24 @@ class Test_native_noESN_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
self.run_test()
+class Test_native_ESN_AES_GCM_128_NONE(RunTestIpsecEspAll):
+ """native ESN AES-GCM-128/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
+class Test_native_ESN_AES_GCM_192_NONE(RunTestIpsecEspAll):
+ """native ESN AES-GCM-192/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
+class Test_native_ESN_AES_GCM_256_NONE(RunTestIpsecEspAll):
+ """native ESN AES-GCM-256/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
class Test_native_ESN_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
"""native ESN AES-CBC-128/MD5-96 IPSec test"""
def test_ipsec(self):
@@ -1177,6 +1193,24 @@ class Test_ipsecmb_noESN_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
self.run_test()
+class Test_ipsecmb_ESN_AES_GCM_128_NONE(RunTestIpsecEspAll):
+ """ipsecmb ESN AES-GCM-128/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
+class Test_ipsecmb_ESN_AES_GCM_192_NONE(RunTestIpsecEspAll):
+ """ipsecmb ESN AES-GCM-192/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
+class Test_ipsecmb_ESN_AES_GCM_256_NONE(RunTestIpsecEspAll):
+ """ipsecmb ESN AES-GCM-256/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
class Test_ipsecmb_ESN_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
"""ipsecmb ESN AES-CBC-128/MD5-96 IPSec test"""
def test_ipsec(self):
@@ -1291,6 +1325,24 @@ class Test_openssl_noESN_AES_CTR_256_SHA1_96(RunTestIpsecEspAll):
self.run_test()
+class Test_openssl_ESN_AES_GCM_128_NONE(RunTestIpsecEspAll):
+ """openssl ESN AES-GCM-128/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
+class Test_openssl_ESN_AES_GCM_192_NONE(RunTestIpsecEspAll):
+ """openssl ESN AES-GCM-192/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
+class Test_openssl_ESN_AES_GCM_256_NONE(RunTestIpsecEspAll):
+ """openssl ESN AES-GCM-256/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
class Test_openssl_ESN_AES_CBC_128_MD5_96(RunTestIpsecEspAll):
"""openssl ESN AES-CBC-128/MD5-96 IPSec test"""
def test_ipsec(self):
@@ -1369,6 +1421,24 @@ class Test_async_noESN_AES_CBC_256_SHA1_96(RunTestIpsecEspAll):
self.run_test()
+class Test_async_ESN_AES_GCM_128_NONE(RunTestIpsecEspAll):
+ """async ESN AES-GCM-128/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
+class Test_async_ESN_AES_GCM_192_NONE(RunTestIpsecEspAll):
+ """async ESN AES-GCM-192/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
+class Test_async_ESN_AES_GCM_256_NONE(RunTestIpsecEspAll):
+ """async ESN AES-GCM-256/NONE IPSec test"""
+ def test_ipsec(self):
+ self.run_test()
+
+
class Test_async_ESN_AES_CBC_192_SHA1_96(RunTestIpsecEspAll):
"""async ESN AES-CBC-192/SHA1-96 IPSec test"""
def test_ipsec(self):