From acedb32800c486a8874ff6b7136f1db83adbc63b Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 24 Oct 2013 16:03:36 -0700 Subject: Rename _OneTimeCipherContext --- cryptography/primitives/block/base.py | 6 +++--- 1 file 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 -- cgit v1.2.3