mbed TLS v2.6.0
md5.h
Go to the documentation of this file.
1 
25 #ifndef MBEDTLS_MD5_H
26 #define MBEDTLS_MD5_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_MD5_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_md5_context *src );
78 
85 
93 void mbedtls_md5_update( mbedtls_md5_context *ctx, const unsigned char *input, size_t ilen );
94 
101 void mbedtls_md5_finish( mbedtls_md5_context *ctx, unsigned char output[16] );
102 
103 /* Internal use */
104 void mbedtls_md5_process( mbedtls_md5_context *ctx, const unsigned char data[64] );
105 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #else /* MBEDTLS_MD5_ALT */
111 #include "md5_alt.h"
112 #endif /* MBEDTLS_MD5_ALT */
113 
114 #ifdef __cplusplus
115 extern "C" {
116 #endif
117 
125 void mbedtls_md5( const unsigned char *input, size_t ilen, unsigned char output[16] );
126 
132 int mbedtls_md5_self_test( int verbose );
133 
134 #ifdef __cplusplus
135 }
136 #endif
137 
138 #endif /* mbedtls_md5.h */
void mbedtls_md5(const unsigned char *input, size_t ilen, unsigned char output[16])
Output = MD5( input buffer )
Configuration options (set of defines)
void mbedtls_md5_init(mbedtls_md5_context *ctx)
Initialize MD5 context.
void mbedtls_md5_clone(mbedtls_md5_context *dst, const mbedtls_md5_context *src)
Clone (the state of) an MD5 context.
void mbedtls_md5_free(mbedtls_md5_context *ctx)
Clear MD5 context.
void mbedtls_md5_update(mbedtls_md5_context *ctx, const unsigned char *input, size_t ilen)
MD5 process buffer.
void mbedtls_md5_starts(mbedtls_md5_context *ctx)
MD5 context setup.
MD5 context structure.
Definition: md5.h:48
int mbedtls_md5_self_test(int verbose)
Checkup routine.
void mbedtls_md5_finish(mbedtls_md5_context *ctx, unsigned char output[16])
MD5 final digest.
void mbedtls_md5_process(mbedtls_md5_context *ctx, const unsigned char data[64])