From 077bf996ef042244c9259d3b32e13f07c2f3f3ae Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 8 Aug 2023 16:21:07 +0200 Subject: Move EC tests to pytest fully. --- test/ec/conftest.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/ec/conftest.py (limited to 'test/ec/conftest.py') diff --git a/test/ec/conftest.py b/test/ec/conftest.py new file mode 100644 index 0000000..5c3f855 --- /dev/null +++ b/test/ec/conftest.py @@ -0,0 +1,18 @@ +import pytest + +from pyecsca.ec.params import get_params, DomainParameters + + +@pytest.fixture(scope="session") +def secp128r1() -> DomainParameters: + return get_params("secg", "secp128r1", "projective") + + +@pytest.fixture(scope="session") +def curve25519() -> DomainParameters: + return get_params("other", "Curve25519", "xz") + + +@pytest.fixture(scope="session") +def ed25519() -> DomainParameters: + return get_params("other", "Ed25519", "projective") -- cgit v1.2.3-70-g09d2