From 6f9fe103a582999c397f7bc8a2248613a207b780 Mon Sep 17 00:00:00 2001 From: Legrandin Date: Wed, 9 May 2012 20:55:07 +0200 Subject: 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. --- src/AES.c | 2 +- src/DES.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 #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 -- cgit v1.2.1