aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-09-09 21:41:03 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-09-10 19:47:50 -0500
commit13f108f926a84eec9c0598164f25cedaece567e3 (patch)
treec4a715ef2166bb590c94dba251b4be7fd250d43f /cryptography
parent180606f3e7fd9083567e9754fca39e44b5b06b15 (diff)
downloadcryptography-13f108f926a84eec9c0598164f25cedaece567e3.tar.gz
cryptography-13f108f926a84eec9c0598164f25cedaece567e3.tar.bz2
cryptography-13f108f926a84eec9c0598164f25cedaece567e3.zip
Add ECB class + docs + tests
* Slightly refactors test_nist to allow fetching of data that has no IV * Does not modify create_block_cipher_context (next commit)
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/primitives/block/modes.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cryptography/primitives/block/modes.py b/cryptography/primitives/block/modes.py
index de31f086..0bf8010b 100644
--- a/cryptography/primitives/block/modes.py
+++ b/cryptography/primitives/block/modes.py
@@ -20,3 +20,10 @@ class CBC(object):
def __init__(self, initialization_vector):
super(CBC, self).__init__()
self.initialization_vector = initialization_vector
+
+
+class ECB(object):
+ name = "ECB"
+
+ def __init__(self):
+ super(ECB, self).__init__()