diff options
Diffstat (limited to 'cryptography/primitives/block/base.py')
-rw-r--r-- | cryptography/primitives/block/base.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cryptography/primitives/block/base.py b/cryptography/primitives/block/base.py index b84ca9c4..42c1f799 100644 --- a/cryptography/primitives/block/base.py +++ b/cryptography/primitives/block/base.py @@ -15,8 +15,6 @@ from __future__ import absolute_import, division, print_function from enum import Enum -from cryptography.bindings import _default_api - class _Operation(Enum): encrypt = 0 @@ -28,7 +26,7 @@ class BlockCipher(object): super(BlockCipher, self).__init__() if api is None: - api = _default_api + from cryptography.bindings import _default_api as api self.cipher = cipher self.mode = mode @@ -36,12 +34,6 @@ class BlockCipher(object): self._ctx = api.create_block_cipher_context(cipher, mode) self._operation = None - @property - def name(self): - return "{0}-{1}-{2}".format( - self.cipher.name, self.cipher.key_size, self.mode.name, - ) - def encrypt(self, plaintext): if self._ctx is None: raise ValueError("BlockCipher was already finalized") |