aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/hazmat/backends/interfaces.py5
-rw-r--r--cryptography/hazmat/primitives/interfaces.py4
-rw-r--r--docs/hazmat/backends/interfaces.rst2
-rw-r--r--docs/hazmat/primitives/interfaces.rst2
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