aboutsummaryrefslogtreecommitdiff
path: root/test/ec/conftest.py
blob: 5c3f85530cbc9648eda2b4e7daa2cc1c37f3dec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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")