aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-04-22 19:31:26 +0800
committerAyrx <terrycwk1994@gmail.com>2014-04-22 23:32:52 +0800
commitbafbc3385e4fb3c048b3daa61ff2807a88f5b2e1 (patch)
tree4191c628d1657122f1b1406b3dd8817f0cd79e87 /cryptography
parent771fc77eb3f3e0d43471c6bde39a194bb17affbb (diff)
downloadcryptography-bafbc3385e4fb3c048b3daa61ff2807a88f5b2e1.tar.gz
cryptography-bafbc3385e4fb3c048b3daa61ff2807a88f5b2e1.tar.bz2
cryptography-bafbc3385e4fb3c048b3daa61ff2807a88f5b2e1.zip
Added _REASON
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/backends/multibackend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cryptography/hazmat/backends/multibackend.py b/cryptography/hazmat/backends/multibackend.py
index 24a7a357..981a60bd 100644
--- a/cryptography/hazmat/backends/multibackend.py
+++ b/cryptography/hazmat/backends/multibackend.py
@@ -170,4 +170,5 @@ class MultiBackend(object):
return b.create_cmac_ctx(algorithm)
except UnsupportedAlgorithm:
pass
- raise UnsupportedAlgorithm("This backend does not support CMAC")
+ raise UnsupportedAlgorithm("This backend does not support CMAC",
+ _Reasons.UNSUPPORTED_CIPHER)