aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-25 23:05:54 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-25 23:05:54 -0600
commita0c157f467536b556481f7c2ee950612f4f8f7e7 (patch)
tree6c83bf461049a48f4e5ae62198e13f4bf959282f /cryptography
parentdc720296556645f0641907e3618f6a1613c39fe7 (diff)
downloadcryptography-a0c157f467536b556481f7c2ee950612f4f8f7e7.tar.gz
cryptography-a0c157f467536b556481f7c2ee950612f4f8f7e7.tar.bz2
cryptography-a0c157f467536b556481f7c2ee950612f4f8f7e7.zip
fix docs, port some review comments forward to the new PR
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/backends/openssl/backend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py
index d080cc8a..0c4fbc3e 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -706,7 +706,7 @@ class _RSAVerificationContext(object):
self._signature = signature
if not isinstance(padding, interfaces.AsymmetricPadding):
raise TypeError(
- "Expected interface of interfaces.AsymmetricPadding")
+ "Expected provider of interfaces.AsymmetricPadding")
if padding.name == "EMSA-PKCS1-v1_5":
if self._backend._lib.Cryptography_HAS_PKEY_CTX:
@@ -723,13 +723,13 @@ class _RSAVerificationContext(object):
def update(self, data):
if self._hash_ctx is None:
- raise AlreadyFinalized("Context was already finalized")
+ raise AlreadyFinalized("Context has already been finalized")
self._hash_ctx.update(data)
def verify(self):
if self._hash_ctx is None:
- raise AlreadyFinalized("Context was already finalized")
+ raise AlreadyFinalized("Context has already been finalized")
evp_pkey = self._backend._lib.EVP_PKEY_new()
assert evp_pkey != self._backend._ffi.NULL