diff options
-rw-r--r-- | cryptography/hazmat/primitives/hashes.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cryptography/hazmat/primitives/hashes.py b/cryptography/hazmat/primitives/hashes.py index a50017bc..bdad5e16 100644 --- a/cryptography/hazmat/primitives/hashes.py +++ b/cryptography/hazmat/primitives/hashes.py @@ -43,15 +43,12 @@ class Hash(object): def copy(self): return self.__class__(self.algorithm, backend=self._backend, - ctx=self._copy_ctx()) + ctx=self._backend.hashes.copy_ctx(self._ctx)) def finalize(self): return self._backend.hashes.finalize_ctx(self._ctx, self.algorithm.digest_size) - def _copy_ctx(self): - return self._backend.hashes.copy_ctx(self._ctx) - @interfaces.register(interfaces.HashAlgorithm) class SHA1(object): |