/home/dko/projects/mobilec/trunk/src/security/xyssl-0.7/include/xyssl/md4.h

Go to the documentation of this file.
00001 /* SVN FILE INFO
00002  * $Revision: 174 $ : Last Committed Revision
00003  * $Date: 2008-06-24 10:50:29 -0700 (Tue, 24 Jun 2008) $ : Last Committed Date */
00007 #ifndef _MD4_H
00008 #define _MD4_H
00009 
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013 
00017 typedef struct
00018 {
00019     unsigned long total[2];     
00020     unsigned long state[4];     
00021     unsigned char buffer[64];   
00022     unsigned char ipad[64];     
00023     unsigned char opad[64];     
00024 }
00025 md4_context;
00026 
00032 void md4_starts( md4_context *ctx );
00033 
00041 void md4_update( md4_context *ctx, unsigned char *input, int ilen );
00042 
00049 void md4_finish( md4_context *ctx, unsigned char *output );
00050 
00058 void md4( unsigned char *input, int ilen,
00059           unsigned char *output );
00060 
00070 int md4_file( char *path, unsigned char *output );
00071 
00079 void md4_hmac_starts( md4_context *ctx,
00080                       unsigned char *key, int keylen );
00081 
00089 void md4_hmac_update( md4_context *ctx,
00090                       unsigned char *input, int ilen );
00091 
00098 void md4_hmac_finish( md4_context *ctx, unsigned char *output );
00099 
00109 void md4_hmac( unsigned char *key, int keylen,
00110                unsigned char *input, int ilen,
00111                unsigned char *output );
00112 
00118 int md4_self_test( int verbose );
00119 
00120 #ifdef __cplusplus
00121 }
00122 #endif
00123 
00124 #endif /* md4.h */

Generated on Tue Jul 1 15:29:58 2008 for Mobile-C by  doxygen 1.5.4