diff options
author | Ayrx <terrycwk1994@gmail.com> | 2014-04-22 11:10:55 +0800 |
---|---|---|
committer | Ayrx <terrycwk1994@gmail.com> | 2014-04-22 12:12:41 +0800 |
commit | a93abae0a62f4da67fb51a77dc0acafe2d04f99c (patch) | |
tree | a2b1699483129622ceedf370a6d376d84cfc2828 /cryptography | |
parent | 001637bec0e7a2442c2694dfe9c98c6efdc97d16 (diff) | |
download | cryptography-a93abae0a62f4da67fb51a77dc0acafe2d04f99c.tar.gz cryptography-a93abae0a62f4da67fb51a77dc0acafe2d04f99c.tar.bz2 cryptography-a93abae0a62f4da67fb51a77dc0acafe2d04f99c.zip |
Added documentation to note rfc 4493
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/hazmat/backends/openssl/backend.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index 0692492b..4137ad10 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -1254,7 +1254,6 @@ class _RSAVerificationContext(object): @utils.register_interface(interfaces.CMACContext) class _CMACContext(object): def __init__(self, backend, algorithm, ctx=None): - if not backend.cmac_algorithm_supported(algorithm): raise UnsupportedAlgorithm("This backend does not support CMAC") @@ -1317,7 +1316,7 @@ class _CMACContext(object): res = self._backend._lib.CMAC_CTX_copy( copied_ctx, self._ctx ) - assert res != 0 + assert res == 0 return _CMACContext( self._backend, self.algorithm, ctx=copied_ctx ) |