aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/hazmat/primitives/interfaces.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index bec7ee7f..f270cc5a 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -507,7 +507,18 @@ class EllipticCurve(object):
@six.add_metaclass(abc.ABCMeta)
+class EllipticCurveSignatureAlgorithm(object):
+ pass
+
+
+@six.add_metaclass(abc.ABCMeta)
class EllipticCurvePrivateKey(object):
+ @abc.abstractmethod
+ def signer(self, signature_algorithm, digest_algorithm, backend):
+ """
+ Returns an AsymmetricSignatureContext used for signing data.
+ """
+
@abc.abstractproperty
def curve(self):
"""
@@ -541,12 +552,18 @@ class EllipticCurvePrivateKey(object):
@abc.abstractmethod
def public_key(self):
"""
- The ECDSAPublicKey for this private key.
+ The EllipticCurvePublicKey for this private key.
"""
@six.add_metaclass(abc.ABCMeta)
class EllipticCurvePublicKey(object):
+ @abc.abstractmethod
+ def verifier(self, signature_algorithm, digest_algorithm, backend):
+ """
+ Returns an AsymmetricSignatureContext used for signing data.
+ """
+
@abc.abstractproperty
def curve(self):
"""