mbed TLS v2.0.0
md4.h
Go to the documentation of this file.
1 
24 #ifndef MBEDTLS_MD4_H
25 #define MBEDTLS_MD4_H
26 
27 #if !defined(MBEDTLS_CONFIG_FILE)
28 #include "config.h"
29 #else
30 #include MBEDTLS_CONFIG_FILE
31 #endif
32 
33 #include <stddef.h>
34 #include <stdint.h>
35 
36 #if !defined(MBEDTLS_MD4_ALT)
37 // Regular implementation
38 //
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
47 typedef struct
48 {
49  uint32_t total[2];
50  uint32_t state[4];
51  unsigned char buffer[64];
52 }
54 
61 
68 
76  const mbedtls_md4_context *src );
77 
84 
92 void mbedtls_md4_update( mbedtls_md4_context *ctx, const unsigned char *input, size_t ilen );
93 
100 void mbedtls_md4_finish( mbedtls_md4_context *ctx, unsigned char output[16] );
101 
102 #ifdef __cplusplus
103 }
104 #endif
105 
106 #else /* MBEDTLS_MD4_ALT */
107 #include "md4_alt.h"
108 #endif /* MBEDTLS_MD4_ALT */
109 
110 #ifdef __cplusplus
111 extern "C" {
112 #endif
113 
121 void mbedtls_md4( const unsigned char *input, size_t ilen, unsigned char output[16] );
122 
128 int mbedtls_md4_self_test( int verbose );
129 
130 /* Internal use */
131 void mbedtls_md4_process( mbedtls_md4_context *ctx, const unsigned char data[64] );
132 
133 #ifdef __cplusplus
134 }
135 #endif
136 
137 #endif /* mbedtls_md4.h */
void mbedtls_md4(const unsigned char *input, size_t ilen, unsigned char output[16])
Output = MD4( input buffer )
int mbedtls_md4_self_test(int verbose)
Checkup routine.
void mbedtls_md4_update(mbedtls_md4_context *ctx, const unsigned char *input, size_t ilen)
MD4 process buffer.
void mbedtls_md4_finish(mbedtls_md4_context *ctx, unsigned char output[16])
MD4 final digest.
Compatibility names (set of defines)
void mbedtls_md4_clone(mbedtls_md4_context *dst, const mbedtls_md4_context *src)
Clone (the state of) an MD4 context.
void mbedtls_md4_free(mbedtls_md4_context *ctx)
Clear MD4 context.
MD4 context structure.
Definition: md4.h:47
void mbedtls_md4_starts(mbedtls_md4_context *ctx)
MD4 context setup.
void mbedtls_md4_init(mbedtls_md4_context *ctx)
Initialize MD4 context.
void mbedtls_md4_process(mbedtls_md4_context *ctx, const unsigned char data[64])