diff options
author | Legrandin <gooksankoo@hoiptorrow.mailexpire.com> | 2011-10-16 22:41:21 +0200 |
---|---|---|
committer | Legrandin <gooksankoo@hoiptorrow.mailexpire.com> | 2011-10-16 22:41:21 +0200 |
commit | 897b75983c31a9e2630af92161e6206c2480685e (patch) | |
tree | ee73668ae2862dd828fd39c7bf41e4dbc10a1e09 /src/MD4.c | |
parent | e05362993e34be982bd08e5ffd076c3e4a351232 (diff) | |
download | pycrypto-897b75983c31a9e2630af92161e6206c2480685e.tar.gz |
Added Lorenz Quack's native C implementation of all SHA-2 algorithm
(as submitted here https://bugs.launchpad.net/pycrypto/+bug/544792)
so that they are available also in Python 2.1, 2.2, 2.3 and 2.4.
Regardless where the implementation comes from (Python standard
library or our native modules, depending on the Python version),
all Crypto.Hash objects are always used as front-ends.
Diffstat (limited to 'src/MD4.c')
-rw-r--r-- | src/MD4.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -30,21 +30,10 @@ #include <string.h> #include <Python.h> -#define MODULE_NAME MD4 +#define MODULE_NAME _MD4 #define DIGEST_SIZE 16 #define BLOCK_SIZE 64 -/** - * id-md4 OBJECT IDENTIFIER ::= { - * iso(1) member-body(2) us(840) rsadsi(113549) - * digestAlgorithm(2) 4 - * } - */ -static const char md4_oid[] = { 0x06, 0x08, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x02, 0x04 }; - -#define DER_OID ((void*)&md4_oid) -#define DER_OID_SIZE (sizeof md4_oid) - typedef unsigned int U32; typedef unsigned char U8; #define U32_MAX (U32)4294967295 |