From daa315999bdc21a9d42141a4fc2560a1ac2bfa7d Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 24 Mar 2025 17:56:04 -0700 Subject: [PATCH 1/4] Update test_x448.py --- tests/wycheproof/test_x448.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/wycheproof/test_x448.py b/tests/wycheproof/test_x448.py index bdad0cb8510f..e8fd1790553a 100644 --- a/tests/wycheproof/test_x448.py +++ b/tests/wycheproof/test_x448.py @@ -20,10 +20,8 @@ ) @wycheproof_tests("x448_test.json") def test_x448(backend, wycheproof): - assert set(wycheproof.testgroup.items()) == { - ("curve", "curve448"), - ("type", "XdhComp"), - } + assert wycheproof.testgroup["curve"] == "curve448" + assert wycheproof.testgroup["type"] = "XdhComp" private_key = X448PrivateKey.from_private_bytes( binascii.unhexlify(wycheproof.testcase["private"]) From 7e9427c6502fd7549811425670ef28d9f639a82c Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 24 Mar 2025 17:56:38 -0700 Subject: [PATCH 2/4] Update test_x25519.py --- tests/wycheproof/test_x25519.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/wycheproof/test_x25519.py b/tests/wycheproof/test_x25519.py index 571c1d137573..7beaea5ee941 100644 --- a/tests/wycheproof/test_x25519.py +++ b/tests/wycheproof/test_x25519.py @@ -20,10 +20,8 @@ ) @wycheproof_tests("x25519_test.json") def test_x25519(backend, wycheproof): - assert set(wycheproof.testgroup.items()) == { - ("curve", "curve25519"), - ("type", "XdhComp"), - } + assert wycheproof.testgroup["curve"] == "curve25519" + assert wycheproof.testgroup["type"] = "XdhComp" private_key = X25519PrivateKey.from_private_bytes( binascii.unhexlify(wycheproof.testcase["private"]) From 7f3039dbed83f984d2f6a1821e2d86c18b676a9e Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 24 Mar 2025 17:59:45 -0700 Subject: [PATCH 3/4] Update test_x25519.py --- tests/wycheproof/test_x25519.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wycheproof/test_x25519.py b/tests/wycheproof/test_x25519.py index 7beaea5ee941..42b4bb7eff58 100644 --- a/tests/wycheproof/test_x25519.py +++ b/tests/wycheproof/test_x25519.py @@ -21,7 +21,7 @@ @wycheproof_tests("x25519_test.json") def test_x25519(backend, wycheproof): assert wycheproof.testgroup["curve"] == "curve25519" - assert wycheproof.testgroup["type"] = "XdhComp" + assert wycheproof.testgroup["type"] == "XdhComp" private_key = X25519PrivateKey.from_private_bytes( binascii.unhexlify(wycheproof.testcase["private"]) From 3f9955509a5d7158796fc97c052adabd0a49dbd8 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 24 Mar 2025 18:00:03 -0700 Subject: [PATCH 4/4] Update test_x448.py --- tests/wycheproof/test_x448.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wycheproof/test_x448.py b/tests/wycheproof/test_x448.py index e8fd1790553a..69b9b723bf45 100644 --- a/tests/wycheproof/test_x448.py +++ b/tests/wycheproof/test_x448.py @@ -21,7 +21,7 @@ @wycheproof_tests("x448_test.json") def test_x448(backend, wycheproof): assert wycheproof.testgroup["curve"] == "curve448" - assert wycheproof.testgroup["type"] = "XdhComp" + assert wycheproof.testgroup["type"] == "XdhComp" private_key = X448PrivateKey.from_private_bytes( binascii.unhexlify(wycheproof.testcase["private"])