dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnet/include il_crypt.h,1.5,1.6


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnet/include il_crypt.h,1.5,1.6
Date: Fri, 28 Nov 2003 03:59:50 +0000

Update of /cvsroot/dotgnu-pnet/pnet/include
In directory subversions:/tmp/cvs-serv8578/include

Modified Files:
        il_crypt.h 
Log Message:


Add the RIPEMD-160 hash algorithm to the engine.


Index: il_crypt.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_crypt.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** il_crypt.h  12 Jul 2002 23:54:44 -0000      1.5
--- il_crypt.h  28 Nov 2003 03:59:48 -0000      1.6
***************
*** 185,188 ****
--- 185,222 ----
  
  /*
+  * The size of RIPEMD160 hash values.
+  */
+ #define       IL_RIPEMD160_HASH_SIZE          20
+ 
+ /*
+  * Context block for RIPEMD160.
+  */
+ typedef struct _tagILRIPEMD160Context
+ {
+       unsigned char   input[64];
+       ILUInt32                inputLen;
+       ILUInt32                A, B, C, D, E;
+       ILUInt64                totalLen;
+ 
+ } ILRIPEMD160Context;
+ 
+ /*
+  * Initialize a RIPEMD1601 context block.
+  */
+ void ILRIPEMD160Init(ILRIPEMD160Context *ripem);
+ 
+ /*
+  * Input more data into a RIPEMD1601 context block.
+  */
+ void ILRIPEMD160Data(ILRIPEMD160Context *ripem,
+                                        const void *buffer, unsigned long len);
+ 
+ /*
+  * Finalize a RIPEMD1601 context block and output the hash.
+  */
+ void ILRIPEMD160Finalize(ILRIPEMD160Context *ripem,
+                                                unsigned char 
hash[IL_RIPEMD160_HASH_SIZE]);
+ 
+ /*
   * Define the structure of a DES encryption context.
   */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]