summaryrefslogtreecommitdiff
path: root/M2Crypto/EC.py
diff options
context:
space:
mode:
Diffstat (limited to 'M2Crypto/EC.py')
-rw-r--r--M2Crypto/EC.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/M2Crypto/EC.py b/M2Crypto/EC.py
index b730334..522092a 100644
--- a/M2Crypto/EC.py
+++ b/M2Crypto/EC.py
@@ -11,8 +11,8 @@ Portions copyright (c) 2005-2006 Vrije Universiteit Amsterdam.
All rights reserved."""
from M2Crypto import BIO, Err, EVP, m2, util
-if util.py27plus:
- from typing import AnyStr, Callable, Dict, Optional, Tuple, Union # noqa
+from typing import AnyStr, Callable, Dict, Optional, Tuple, Union # noqa
+from M2Crypto.EVP import PKey
EC_Key = bytes
@@ -20,6 +20,7 @@ EC_Key = bytes
class ECError(Exception):
pass
+
m2.ec_init(ECError)
# Curve identifier constants