diff options
| m--------- | pyecsca/ec/efd | 0 | ||||
| m--------- | pyecsca/ec/std | 0 | ||||
| -rw-r--r-- | test/ec/test_params.py | 9 |
3 files changed, 6 insertions, 3 deletions
diff --git a/pyecsca/ec/efd b/pyecsca/ec/efd -Subproject efee538bc69724a674802ccd0e93b784bd8e77d +Subproject 3caf221f3ec97bb6826bd2330bcc9da6f8a98b4 diff --git a/pyecsca/ec/std b/pyecsca/ec/std -Subproject 867e7aeafda3304fb802588d887ef35f2523f0f +Subproject 4af0d222a5de43f650efbb639cca6de6bb8cfe6 diff --git a/test/ec/test_params.py b/test/ec/test_params.py index 2873a17..13e45ec 100644 --- a/test/ec/test_params.py +++ b/test/ec/test_params.py @@ -7,7 +7,6 @@ from pyecsca.ec.params import get_params, load_params class DomainParameterTests(TestCase): - def setUp(self): self.secp128r1 = get_params("secg", "secp128r1", "projective") self.curve25519 = get_params("other", "Curve25519", "xz") @@ -59,13 +58,17 @@ class DomainParameterTests(TestCase): def test_infty(self): with self.assertRaises(ValueError): - get_params("secg", "secp128r1", "modified", False) + get_params("other", "Ed25519", "modified", False) self.assertIsNotNone(get_params("secg", "secp128r1", "projective", False)) def test_no_binary(self): with self.assertRaises(ValueError): get_params("secg", "sect163r1", "something") + def test_no_extension(self): + with self.assertRaises(ValueError): + get_params("other", "Fp254n2BNa", "something") + def test_affine(self): aff = get_params("secg", "secp128r1", "affine") - self.assertIsInstance(aff.curve.coordinate_model, AffineCoordinateModel)
\ No newline at end of file + self.assertIsInstance(aff.curve.coordinate_model, AffineCoordinateModel) |
