diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-18 13:36:53 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-18 13:36:53 -0600 |
commit | 430202dfba9a3c97abc80955752e5b9e4d430911 (patch) | |
tree | d70645d7125c0016dce480a17c2cec2aea03f460 | |
parent | dd3780a0e516b2c07e02f5b3afc02a79bfe44c6f (diff) | |
download | cryptography-430202dfba9a3c97abc80955752e5b9e4d430911.tar.gz cryptography-430202dfba9a3c97abc80955752e5b9e4d430911.tar.bz2 cryptography-430202dfba9a3c97abc80955752e5b9e4d430911.zip |
let's try renaming everything I said I'd rename
-rw-r--r-- | cryptography/hazmat/backends/interfaces.py | 5 | ||||
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 4 | ||||
-rw-r--r-- | docs/hazmat/backends/interfaces.rst | 2 | ||||
-rw-r--r-- | docs/hazmat/primitives/interfaces.rst | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/cryptography/hazmat/backends/interfaces.py b/cryptography/hazmat/backends/interfaces.py index e4e69f10..8d17d3ad 100644 --- a/cryptography/hazmat/backends/interfaces.py +++ b/cryptography/hazmat/backends/interfaces.py @@ -99,7 +99,8 @@ class RSABackend(six.with_metaclass(abc.ABCMeta)): """ @abc.abstractmethod - def create_rsa_verify_ctx(self, public_key, signature, padding, algorithm): + def create_rsa_verification_ctx(self, public_key, signature, padding, algorithm): """ - Returns an object conforming to the AsymmetricVerifyContext interface. + Returns an object conforming to the AsymmetricVerificationContext + interface. """ diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index f5d301de..11696160 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -301,7 +301,7 @@ class AsymmetricSignatureContext(six.with_metaclass(abc.ABCMeta)): """ -class AsymmetricVerifyContext(six.with_metaclass(abc.ABCMeta)): +class AsymmetricVerificationContext(six.with_metaclass(abc.ABCMeta)): @abc.abstractmethod def update(self, data): """ @@ -309,7 +309,7 @@ class AsymmetricVerifyContext(six.with_metaclass(abc.ABCMeta)): """ @abc.abstractmethod - def finalize(self): + def verify(self): """ Raises an exception if the bytes provided to update do not match the signature or the signature does not match the public key. diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index c54340b6..bd38ed50 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -247,4 +247,4 @@ A specific ``backend`` may provide one or more of these interfaces. provider. :returns: - :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerifyContext` + :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerificationContext` diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 6fbc61b0..5be3dd95 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -244,7 +244,7 @@ Asymmetric Interfaces :return bytes signature: The signature. -.. class:: AsymmetricVerifyContext +.. class:: AsymmetricVerificationContext .. versionadded:: 0.2 |