diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-14 10:27:14 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-14 10:36:24 -0600 |
commit | 7c5c9fedd513f4ef66b62fcf5fdcde8dc30fe532 (patch) | |
tree | 1600ea1cdc548421f021bdc79a1251db8a7a0ebf /src/cryptography/hazmat/primitives/cmac.py | |
parent | 2129d5035849c69f990a646ac76891d1a886be55 (diff) | |
download | cryptography-7c5c9fedd513f4ef66b62fcf5fdcde8dc30fe532.tar.gz cryptography-7c5c9fedd513f4ef66b62fcf5fdcde8dc30fe532.tar.bz2 cryptography-7c5c9fedd513f4ef66b62fcf5fdcde8dc30fe532.zip |
export interfaces from base in ciphers, update docs
Diffstat (limited to 'src/cryptography/hazmat/primitives/cmac.py')
-rw-r--r-- | src/cryptography/hazmat/primitives/cmac.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cryptography/hazmat/primitives/cmac.py b/src/cryptography/hazmat/primitives/cmac.py index d746147a..c2038a30 100644 --- a/src/cryptography/hazmat/primitives/cmac.py +++ b/src/cryptography/hazmat/primitives/cmac.py @@ -9,8 +9,7 @@ from cryptography.exceptions import ( AlreadyFinalized, UnsupportedAlgorithm, _Reasons ) from cryptography.hazmat.backends.interfaces import CMACBackend -from cryptography.hazmat.primitives import interfaces -from cryptography.hazmat.primitives.ciphers import base +from cryptography.hazmat.primitives import ciphers, interfaces @utils.register_interface(interfaces.MACContext) @@ -22,7 +21,7 @@ class CMAC(object): _Reasons.BACKEND_MISSING_INTERFACE ) - if not isinstance(algorithm, base.BlockCipherAlgorithm): + if not isinstance(algorithm, ciphers.BlockCipherAlgorithm): raise TypeError( "Expected instance of BlockCipherAlgorithm." ) |