aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2021-09-27 15:37:48 +0200
committerDamjan Marion <dmarion@me.com>2021-09-27 14:39:15 +0000
commita427690b80003303d2cf6278f512a027ec430d6d (patch)
tree230aa03ef2091f5ea5fb507448b47dbd83c6e2ac /test
parent41d7d0569b9aef1811336cf013f04b9ca50c7b3b (diff)
ikev2: support variable-length nonces
IKEv2 nonces can be 16 to 256 bytes. Type: fix Change-Id: Ib332028594355c9e5b462bddb7e4dffbcdc9a927 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_ikev2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_ikev2.py b/test/test_ikev2.py
index 175fa0ab9be..4f41ad272ba 100644
--- a/test/test_ikev2.py
+++ b/test/test_ikev2.py
@@ -1441,6 +1441,7 @@ class Ikev2Params(object):
id_type=self.p.local_id['id_type'],
i_natt=i_natt, r_natt=r_natt,
priv_key=client_priv, auth_method=auth_method,
+ nonce=params.get('nonce'),
auth_data=auth_data, udp_encap=udp_encap,
local_ts=self.p.remote_ts, remote_ts=self.p.local_ts)
if is_init:
@@ -1955,7 +1956,8 @@ class Test_IKE_AES_CBC_128_SHA256_128_MODP2048_ESP_AES_CBC_192_SHA_384_192\
'ike-integ': 'SHA2-256-128',
'esp-crypto': ('AES-CBC', 24),
'esp-integ': 'SHA2-384-192',
- 'ike-dh': '2048MODPgr'})
+ 'ike-dh': '2048MODPgr',
+ 'nonce': os.urandom(256)})
@tag_fixme_vpp_workers