md4.h

Go to the documentation of this file.
00001 
00023 #ifndef MBEDTLS_MD4_H
00024 #define MBEDTLS_MD4_H
00025 
00026 #if !defined(MBEDTLS_CONFIG_FILE)
00027 #include "config.h"
00028 #else
00029 #include MBEDTLS_CONFIG_FILE
00030 #endif
00031 
00032 #include <stddef.h>
00033 #include <stdint.h>
00034 
00035 #if !defined(MBEDTLS_MD4_ALT)
00036 // Regular implementation
00037 //
00038 
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042 
00046 typedef struct
00047 {
00048     uint32_t total[2];          
00049     uint32_t state[4];          
00050     unsigned char buffer[64];   
00051 }
00052 mbedtls_md4_context;
00053 
00059 void mbedtls_md4_init( mbedtls_md4_context *ctx );
00060 
00066 void mbedtls_md4_free( mbedtls_md4_context *ctx );
00067 
00074 void mbedtls_md4_clone( mbedtls_md4_context *dst,
00075                         const mbedtls_md4_context *src );
00076 
00082 void mbedtls_md4_starts( mbedtls_md4_context *ctx );
00083 
00091 void mbedtls_md4_update( mbedtls_md4_context *ctx, const unsigned char *input, size_t ilen );
00092 
00099 void mbedtls_md4_finish( mbedtls_md4_context *ctx, unsigned char output[16] );
00100 
00101 #ifdef __cplusplus
00102 }
00103 #endif
00104 
00105 #else  /* MBEDTLS_MD4_ALT */
00106 #include "md4_alt.h"
00107 #endif /* MBEDTLS_MD4_ALT */
00108 
00109 #ifdef __cplusplus
00110 extern "C" {
00111 #endif
00112 
00120 void mbedtls_md4( const unsigned char *input, size_t ilen, unsigned char output[16] );
00121 
00127 int mbedtls_md4_self_test( int verbose );
00128 
00129 /* Internal use */
00130 void mbedtls_md4_process( mbedtls_md4_context *ctx, const unsigned char data[64] );
00131 
00132 #ifdef __cplusplus
00133 }
00134 #endif
00135 
00136 #endif /* mbedtls_md4.h */

Generated on 11 Mar 2017 for mbed TLS v2.4.2 by  doxygen 1.4.7