diff options
Diffstat (limited to 'cryptography/primitives/block/base.py')
-rw-r--r-- | cryptography/primitives/block/base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cryptography/primitives/block/base.py b/cryptography/primitives/block/base.py index e9b949c0..2d4623a8 100644 --- a/cryptography/primitives/block/base.py +++ b/cryptography/primitives/block/base.py @@ -44,12 +44,12 @@ class _CipherEncryptionContext(object): def update(self, data): if self._ctx is None: raise ValueError("Context was already finalized") - return self._backend.ciphers.update_encrypt_ctx(self._ctx, data) + return self._backend.ciphers.update_ctx(self._ctx, data) def finalize(self): if self._ctx is None: raise ValueError("Context was already finalized") - data = self._backend.ciphers.finalize_encrypt_ctx(self._ctx) + data = self._backend.ciphers.finalize_ctx(self._ctx) self._ctx = None return data @@ -64,11 +64,11 @@ class _CipherDecryptionContext(object): def update(self, data): if self._ctx is None: raise ValueError("Context was already finalized") - return self._backend.ciphers.update_decrypt_ctx(self._ctx, data) + return self._backend.ciphers.update_ctx(self._ctx, data) def finalize(self): if self._ctx is None: raise ValueError("Context was already finalized") - data = self._backend.ciphers.finalize_decrypt_ctx(self._ctx) + data = self._backend.ciphers.finalize_ctx(self._ctx) self._ctx = None return data |