From a427690b80003303d2cf6278f512a027ec430d6d Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Mon, 27 Sep 2021 15:37:48 +0200 Subject: ikev2: support variable-length nonces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IKEv2 nonces can be 16 to 256 bytes. Type: fix Change-Id: Ib332028594355c9e5b462bddb7e4dffbcdc9a927 Signed-off-by: Benoît Ganne --- test/test_ikev2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit 1.2.3-korg