diff options
author | David Reid <dreid@dreid.org> | 2013-10-31 15:40:48 -0700 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2013-10-31 15:40:48 -0700 |
commit | a194329365c142a2d2fd62b0a46d8b22eadb676a (patch) | |
tree | 03c3cd0ab30fbea28a3f1d02952616386c2bbf67 | |
parent | bb0d3f0f2d064f4674793f2e0d8e9a3f04ad3ef1 (diff) | |
download | cryptography-a194329365c142a2d2fd62b0a46d8b22eadb676a.tar.gz cryptography-a194329365c142a2d2fd62b0a46d8b22eadb676a.tar.bz2 cryptography-a194329365c142a2d2fd62b0a46d8b22eadb676a.zip |
Inline _copy_ctx
-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): |