File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed
Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change 3636 b"\n :\xca D\x1f )\xde \xf7 3\x9a !/x#(z\xf8 /\x83 \xeb \r &\x7f &\xb4 \xeb \xc1 \x1b \xe9 \x91 I\xf5 \x8a \xb6 \xee \xaf \x08 \xb9 "
3737 b"\xa5 \xe1 S\xb2 Gw\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}
4840VALUES ["ciphertext" ] = VALUES ["encryptor" ]["update" ] + VALUES ["encryptor" ]["finalize" ]
4941VALUES ["plaintext" ] = VALUES ["decryptor" ]["update" ] + VALUES ["decryptor" ]["finalize" ]
Original file line number Diff line number Diff 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-
297290def 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 = "\x02 skdgaiuhgijudflkjsdgfkjsdflgjhsd" )
349-
350- excinfo .match (r"Non-prime curves are not supported at this time" )
351-
352-
353339def 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
You can’t perform that action at this time.
0 commit comments