summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLegrandin <gooksankoo@hoiptorrow.mailexpire.com>2012-05-09 20:55:07 +0200
committerLegrandin <gooksankoo@hoiptorrow.mailexpire.com>2012-05-10 19:16:50 +0200
commit6f9fe103a582999c397f7bc8a2248613a207b780 (patch)
treec7f1bcf72442b2392d078d4a38e8bd9761bb39da /src
parent2f8a86bd83138bfef618e763fb8b2147f1214af8 (diff)
downloadpycrypto-6f9fe103a582999c397f7bc8a2248613a207b780.tar.gz
Added documentation for AES and DES.
A new module (blockalgo) has been added. It contains a class (BlockAlgo) all ciphers derive from. The only purpose of such base class is to centralize all general documentation applicable to all block ciphers (e.g. modes) into a single file.
Diffstat (limited to 'src')
-rw-r--r--src/AES.c2
-rw-r--r--src/DES.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/AES.c b/src/AES.c
index b6a1726..0aeaeda 100644
--- a/src/AES.c
+++ b/src/AES.c
@@ -28,7 +28,7 @@
#include <stdlib.h>
#include "Python.h"
-#define MODULE_NAME AES
+#define MODULE_NAME _AES
#define BLOCK_SIZE 16
#define KEY_SIZE 0
diff --git a/src/DES.c b/src/DES.c
index 2bf3f84..ba63a09 100644
--- a/src/DES.c
+++ b/src/DES.c
@@ -102,7 +102,7 @@ static void block_decrypt(block_state *self, unsigned char *in, unsigned char *o
# define BLOCK_SIZE 8 /* 64-bit block size */
# define KEY_SIZE 0 /* variable key size (can be 128 or 192 bits (including parity) */
#else
-# define MODULE_NAME DES /* single DES */
+# define MODULE_NAME _DES /* single DES */
# define BLOCK_SIZE 8 /* 64-bit block size */
# define KEY_SIZE 8 /* 64-bit keys (including parity) */
#endif