aboutsummaryrefslogtreecommitdiff
path: root/frozen_deps/ecdsa/test_ecdh.py
diff options
context:
space:
mode:
Diffstat (limited to 'frozen_deps/ecdsa/test_ecdh.py')
-rw-r--r--frozen_deps/ecdsa/test_ecdh.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/frozen_deps/ecdsa/test_ecdh.py b/frozen_deps/ecdsa/test_ecdh.py
index 872d4d1..cb22580 100644
--- a/frozen_deps/ecdsa/test_ecdh.py
+++ b/frozen_deps/ecdsa/test_ecdh.py
@@ -1,4 +1,5 @@
import os
+import sys
import shutil
import subprocess
import pytest
@@ -16,6 +17,8 @@ from .curves import (
NIST384p,
NIST521p,
BRAINPOOLP160r1,
+ SECP112r2,
+ SECP128r1,
)
from .curves import curves
from .ecdh import (
@@ -29,6 +32,10 @@ from .keys import SigningKey, VerifyingKey
from .ellipticcurve import CurveEdTw
+if "--fast" in sys.argv: # pragma: no cover
+ curves = [SECP112r2, SECP128r1]
+
+
@pytest.mark.parametrize(
"vcurve",
curves,
@@ -366,6 +373,7 @@ OPENSSL_SUPPORTED_CURVES = set(
)
@pytest.mark.parametrize(
"vcurve",
curves,