mbed TLS v2.3.0
md4.h
Go to the documentation of this file.
1 
25 #ifndef MBEDTLS_MD4_H
26 #define MBEDTLS_MD4_H
27 
28 #if !defined(MBEDTLS_CONFIG_FILE)
29 #include "config.h"
30 #else
31 #include MBEDTLS_CONFIG_FILE
32 #endif
33 
34 #include <stddef.h>
35 #include <stdint.h>
36 
37 #if !defined(MBEDTLS_MD4_ALT)
38 // Regular implementation
39 //
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
48 typedef struct
49 {
50  uint32_t total[2];
51  uint32_t state[4];
52  unsigned char buffer[64];
53 }
55 
62 
69 
77  const mbedtls_md4_context *src );
78 
85 
93 void mbedtls_md4_update( mbedtls_md4_context *ctx, const unsigned char *input, size_t ilen );
94 
101 void mbedtls_md4_finish( mbedtls_md4_context *ctx, unsigned char output[16] );
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #else /* MBEDTLS_MD4_ALT */
108 #include "md4_alt.h"
109 #endif /* MBEDTLS_MD4_ALT */
110 
111 #ifdef __cplusplus
112 extern "C" {
113 #endif
114 
122 void mbedtls_md4( const unsigned char *input, size_t ilen, unsigned char output[16] );
123 
129 int mbedtls_md4_self_test( int verbose );
130 
131 /* Internal use */
132 void mbedtls_md4_process( mbedtls_md4_context *ctx, const unsigned char data[64] );
133 
134 #ifdef __cplusplus
135 }
136 #endif
137 
138 #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.
Configuration options (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:48
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])