blob: e12beb3db589a4cf7833b1873ad719ce8a781064 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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", infty=False)
@pytest.fixture(scope="session")
def curve448() -> DomainParameters:
return get_params("other", "Curve448", "xz", infty=False)
@pytest.fixture(scope="session")
def ed25519() -> DomainParameters:
return get_params("other", "Ed25519", "projective")
|