aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 61bfe624..00fdc266 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -597,7 +597,7 @@ class _RSASignatureContext(object):
self._private_key = private_key
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:
@@ -616,13 +616,13 @@ class _RSASignatureContext(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 finalize(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
evp_pkey = backend._ffi.gc(evp_pkey, backend._lib.EVP_PKEY_free)