summaryrefslogtreecommitdiff
path: root/src/AES.c
diff options
context:
space:
mode:
authorDwayne Litzenberger <dlitz@dlitz.net>2014-06-09 05:14:13 -0700
committerDwayne Litzenberger <dlitz@dlitz.net>2014-06-09 05:14:15 -0700
commit460a33f6f7949320e3df5c9f5f12b70bf1310412 (patch)
tree68549842dbc48d5a1b14984f24f3bc2ba4697062 /src/AES.c
parent2d1aecd731f91f7367ef2a4069d305e2a1b488c0 (diff)
downloadpycrypto-460a33f6f7949320e3df5c9f5f12b70bf1310412.tar.gz
Allow block ciphers to specify which modes they supportselect-modes
Diffstat (limited to 'src/AES.c')
-rw-r--r--src/AES.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/AES.c b/src/AES.c
index 1e705da..2f686d4 100644
--- a/src/AES.c
+++ b/src/AES.c
@@ -32,6 +32,12 @@
#define BLOCK_SIZE 16
#define KEY_SIZE 0
+#define HAS_ENCRYPT 1
+#define HAS_MODE_CBC 1
+#define HAS_MODE_CFB 1
+#define HAS_MODE_OFB 1
+#define HAS_MODE_CTR 1
+
#define MAXKC (256/32)
#define MAXKB (256/8)
#define MAXNR 14