From 503d5c538b44287ea1cfee64b57cd68554265394 Mon Sep 17 00:00:00 2001 From: rishav-karanjit Date: Thu, 26 Feb 2026 10:53:54 -0800 Subject: [PATCH 1/2] m --- test/unit/test_crypto.py | 8 -------- test/unit/test_crypto_elliptic_curve.py | 14 -------------- 2 files changed, 22 deletions(-) diff --git a/test/unit/test_crypto.py b/test/unit/test_crypto.py index 6b0389d11..523cd147f 100644 --- a/test/unit/test_crypto.py +++ b/test/unit/test_crypto.py @@ -36,14 +36,6 @@ b"\n:\xcaD\x1f)\xde\xf73\x9a!/x#(z\xf8/\x83\xeb\r&\x7f&\xb4\xeb\xc1\x1b\xe9\x91I\xf5\x8a\xb6\xee\xaf\x08\xb9" b"\xa5\xe1S\xb2Gw\x15(\xb6\xe1" ), - "ecc_private_key_char2": ec.EllipticCurvePrivateNumbers( - private_value=131512833187976200862897177240257889476359607892474090119002870596121284569326171944650239612201181144875264734209664973820, # noqa pylint: disable=line-too-long - public_numbers=ec.EllipticCurvePublicNumbers( - x=783372629152728216190118671643020486604880277607267246139026062120084499867233383227220456289236528291350315438332972681898, # noqa pylint: disable=line-too-long - y=657053766035459398820670308946963262342583342616783849689721971058264156234178067988487273332138651529574836305189297847674, # noqa pylint: disable=line-too-long - curve=ec.SECT409K1(), - ), - ).private_key(default_backend()), } VALUES["ciphertext"] = VALUES["encryptor"]["update"] + VALUES["encryptor"]["finalize"] VALUES["plaintext"] = VALUES["decryptor"]["update"] + VALUES["decryptor"]["finalize"] diff --git a/test/unit/test_crypto_elliptic_curve.py b/test/unit/test_crypto_elliptic_curve.py index 1e04d6e3c..58a07557a 100644 --- a/test/unit/test_crypto_elliptic_curve.py +++ b/test/unit/test_crypto_elliptic_curve.py @@ -287,13 +287,6 @@ def test_ecc_encode_compressed_point_prime(): assert compressed_point == VALUES["ecc_compressed_point"] -def test_ecc_encode_compressed_point_characteristic_two(): - with pytest.raises(NotSupportedError) as excinfo: - _ecc_encode_compressed_point(VALUES["ecc_private_key_char2"]) - - excinfo.match(r"Non-prime curves are not supported at this time") - - def test_ecc_decode_compressed_point_infinity(): with pytest.raises(NotSupportedError) as excinfo: _ecc_decode_compressed_point(curve=ec.SECP384R1(), compressed_point=b"") @@ -343,13 +336,6 @@ def test_ecc_decode_compressed_point_prime_complex(patch_ecc_curve_parameters): excinfo.match(r"S not 1 :: Curve not supported at this time") -def test_ecc_decode_compressed_point_nonprime_characteristic_two(): - with pytest.raises(NotSupportedError) as excinfo: - _ecc_decode_compressed_point(curve=ec.SECT409K1(), compressed_point="\x02skdgaiuhgijudflkjsdgfkjsdflgjhsd") - - excinfo.match(r"Non-prime curves are not supported at this time") - - def test_ecc_public_numbers_from_compressed_point(patch_ec, patch_ecc_decode_compressed_point): patch_ecc_decode_compressed_point.return_value = sentinel.x, sentinel.y patch_ec.EllipticCurvePublicNumbers.return_value = sentinel.public_numbers_instance From 5b2c42bae03bcadae0557d806ddac15ef040201f Mon Sep 17 00:00:00 2001 From: rishav-karanjit Date: Thu, 26 Feb 2026 10:57:55 -0800 Subject: [PATCH 2/2] empty commit