summaryrefslogtreecommitdiff
path: root/src/MD4.c
diff options
context:
space:
mode:
authorLegrandin <gooksankoo@hoiptorrow.mailexpire.com>2011-10-16 22:41:21 +0200
committerLegrandin <gooksankoo@hoiptorrow.mailexpire.com>2011-10-16 22:41:21 +0200
commit897b75983c31a9e2630af92161e6206c2480685e (patch)
treeee73668ae2862dd828fd39c7bf41e4dbc10a1e09 /src/MD4.c
parente05362993e34be982bd08e5ffd076c3e4a351232 (diff)
downloadpycrypto-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.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/MD4.c b/src/MD4.c
index 344982d..127a694 100644
--- a/src/MD4.c
+++ b/src/MD4.c
@@ -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