aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/hazmat/backends/interfaces.py3
-rw-r--r--cryptography/hazmat/primitives/interfaces.py2
-rw-r--r--docs/hazmat/primitives/interfaces.rst6
3 files changed, 6 insertions, 5 deletions
diff --git a/cryptography/hazmat/backends/interfaces.py b/cryptography/hazmat/backends/interfaces.py
index f02890e9..e4e69f10 100644
--- a/cryptography/hazmat/backends/interfaces.py
+++ b/cryptography/hazmat/backends/interfaces.py
@@ -94,7 +94,8 @@ class RSABackend(six.with_metaclass(abc.ABCMeta)):
@abc.abstractmethod
def create_rsa_signature_ctx(self, private_key, padding, algorithm):
"""
- Returns an object conforming to the AsymmetricSignContext interface.
+ Returns an object conforming to the AsymmetricSignatureContext
+ interface.
"""
@abc.abstractmethod
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index ea29e713..f5d301de 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -287,7 +287,7 @@ class RSAPublicKey(six.with_metaclass(abc.ABCMeta)):
"""
-class AsymmetricSignContext(six.with_metaclass(abc.ABCMeta)):
+class AsymmetricSignatureContext(six.with_metaclass(abc.ABCMeta)):
@abc.abstractmethod
def update(self, data):
"""
diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst
index e4ae3e93..e97f40f4 100644
--- a/docs/hazmat/primitives/interfaces.rst
+++ b/docs/hazmat/primitives/interfaces.rst
@@ -231,13 +231,13 @@ Asymmetric Interfaces
The public exponent. Alias for :attr:`public_exponent`.
-.. class:: AsymmetricSignContext
+.. class:: AsymmetricSignatureContext
.. versionadded:: 0.2
.. method:: update(data)
- :param bytes data: The data you wish to pass into the context.
+ :param bytes data: The data you want to sign.
.. method:: finalize()
@@ -250,7 +250,7 @@ Asymmetric Interfaces
.. method:: update(data)
- :param bytes data: The data you wish to pass into the context.
+ :param bytes data: The data you wish to verify using the signature.
.. method:: finalize()