diff options
author | Alex Stapleton <alexs@prol.etari.at> | 2014-04-18 11:38:28 +0100 |
---|---|---|
committer | Alex Stapleton <alexs@prol.etari.at> | 2014-05-23 21:05:47 +0100 |
commit | a1853f9bdbabd1f7c48229272915e1fcf4b998e7 (patch) | |
tree | 2ca2a3c252d3f29f856f2fbbccd278fb72f60e27 /cryptography | |
parent | b72e53ced354e34354a321fc3d5f1ca7b6fddf4e (diff) | |
download | cryptography-a1853f9bdbabd1f7c48229272915e1fcf4b998e7.tar.gz cryptography-a1853f9bdbabd1f7c48229272915e1fcf4b998e7.tar.bz2 cryptography-a1853f9bdbabd1f7c48229272915e1fcf4b998e7.zip |
Flesh out EllipticCurveSignatureAlgorithm
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index f270cc5a..5bca9c52 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -508,7 +508,17 @@ class EllipticCurve(object): @six.add_metaclass(abc.ABCMeta) class EllipticCurveSignatureAlgorithm(object): - pass + @abc.abstractmethod + def signer(self, private_key, algorithm, backend): + """ + Returns an AsymmetricSignatureContext used for signing data. + """ + + @abc.abstractmethod + def verifier(self, public_key, algorithm, backend): + """ + Returns an AsymmetricVerificationContext used for signing data. + """ @six.add_metaclass(abc.ABCMeta) @@ -561,7 +571,7 @@ class EllipticCurvePublicKey(object): @abc.abstractmethod def verifier(self, signature_algorithm, digest_algorithm, backend): """ - Returns an AsymmetricSignatureContext used for signing data. + Returns an AsymmetricVerificationContext used for signing data. """ @abc.abstractproperty |