aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/primitives/block/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cryptography/primitives/block/base.py b/cryptography/primitives/block/base.py
index e7559143..7924cf9c 100644
--- a/cryptography/primitives/block/base.py
+++ b/cryptography/primitives/block/base.py
@@ -28,16 +28,16 @@ class BlockCipher(object):
self._backend = backend
def encryptor(self):
- return _OneTimeCipherContext(
+ return _CipherContext(
self._backend.ciphers.create_encrypt_ctx(self.cipher, self.mode))
def decryptor(self):
- return _OneTimeCipherContext(
+ return _CipherContext(
self._backend.ciphers.create_decrypt_ctx(self.cipher, self.mode))
@interfaces.register(interfaces.CipherContext)
-class _OneTimeCipherContext(object):
+class _CipherContext(object):
def __init__(self, ctx):
self._ctx = ctx