diff options
author | Legrandin <gooksankoo@hoiptorrow.mailexpire.com> | 2012-05-09 20:55:07 +0200 |
---|---|---|
committer | Legrandin <gooksankoo@hoiptorrow.mailexpire.com> | 2012-05-10 19:16:50 +0200 |
commit | 6f9fe103a582999c397f7bc8a2248613a207b780 (patch) | |
tree | c7f1bcf72442b2392d078d4a38e8bd9761bb39da /src | |
parent | 2f8a86bd83138bfef618e763fb8b2147f1214af8 (diff) | |
download | pycrypto-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.c | 2 | ||||
-rw-r--r-- | src/DES.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 @@ -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 |