Skip to content

Commit 5108977

Browse files
chore: remove SECT409K1 from test (#791)
1 parent 2153057 commit 5108977

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

test/unit/test_crypto.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@
3636
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"
3737
b"\xa5\xe1S\xb2Gw\x15(\xb6\xe1"
3838
),
39-
"ecc_private_key_char2": ec.EllipticCurvePrivateNumbers(
40-
private_value=131512833187976200862897177240257889476359607892474090119002870596121284569326171944650239612201181144875264734209664973820, # noqa pylint: disable=line-too-long
41-
public_numbers=ec.EllipticCurvePublicNumbers(
42-
x=783372629152728216190118671643020486604880277607267246139026062120084499867233383227220456289236528291350315438332972681898, # noqa pylint: disable=line-too-long
43-
y=657053766035459398820670308946963262342583342616783849689721971058264156234178067988487273332138651529574836305189297847674, # noqa pylint: disable=line-too-long
44-
curve=ec.SECT409K1(),
45-
),
46-
).private_key(default_backend()),
4739
}
4840
VALUES["ciphertext"] = VALUES["encryptor"]["update"] + VALUES["encryptor"]["finalize"]
4941
VALUES["plaintext"] = VALUES["decryptor"]["update"] + VALUES["decryptor"]["finalize"]

test/unit/test_crypto_elliptic_curve.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,6 @@ def test_ecc_encode_compressed_point_prime():
287287
assert compressed_point == VALUES["ecc_compressed_point"]
288288

289289

290-
def test_ecc_encode_compressed_point_characteristic_two():
291-
with pytest.raises(NotSupportedError) as excinfo:
292-
_ecc_encode_compressed_point(VALUES["ecc_private_key_char2"])
293-
294-
excinfo.match(r"Non-prime curves are not supported at this time")
295-
296-
297290
def test_ecc_decode_compressed_point_infinity():
298291
with pytest.raises(NotSupportedError) as excinfo:
299292
_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):
343336
excinfo.match(r"S not 1 :: Curve not supported at this time")
344337

345338

346-
def test_ecc_decode_compressed_point_nonprime_characteristic_two():
347-
with pytest.raises(NotSupportedError) as excinfo:
348-
_ecc_decode_compressed_point(curve=ec.SECT409K1(), compressed_point="\x02skdgaiuhgijudflkjsdgfkjsdflgjhsd")
349-
350-
excinfo.match(r"Non-prime curves are not supported at this time")
351-
352-
353339
def test_ecc_public_numbers_from_compressed_point(patch_ec, patch_ecc_decode_compressed_point):
354340
patch_ecc_decode_compressed_point.return_value = sentinel.x, sentinel.y
355341
patch_ec.EllipticCurvePublicNumbers.return_value = sentinel.public_numbers_instance

0 commit comments

Comments
 (0)