mbed TLS v2.6.0
md2.h
Go to the documentation of this file.
1 
25 #ifndef MBEDTLS_MD2_H
26 #define MBEDTLS_MD2_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 
36 #if !defined(MBEDTLS_MD2_ALT)
37 // Regular implementation
38 //
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
47 typedef struct
48 {
49  unsigned char cksum[16];
50  unsigned char state[48];
51  unsigned char buffer[16];
52  size_t left;
53 }
55 
62 
69 
77  const mbedtls_md2_context *src );
78 
85 
93 void mbedtls_md2_update( mbedtls_md2_context *ctx, const unsigned char *input, size_t ilen );
94 
101 void mbedtls_md2_finish( mbedtls_md2_context *ctx, unsigned char output[16] );
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #else /* MBEDTLS_MD2_ALT */
108 #include "md2_alt.h"
109 #endif /* MBEDTLS_MD2_ALT */
110 
111 #ifdef __cplusplus
112 extern "C" {
113 #endif
114 
122 void mbedtls_md2( const unsigned char *input, size_t ilen, unsigned char output[16] );
123 
129 int mbedtls_md2_self_test( int verbose );
130 
131 /* Internal use */
133 
134 #ifdef __cplusplus
135 }
136 #endif
137 
138 #endif /* mbedtls_md2.h */
size_t left
Definition: md2.h:52
void mbedtls_md2(const unsigned char *input, size_t ilen, unsigned char output[16])
Output = MD2( input buffer )
void mbedtls_md2_starts(mbedtls_md2_context *ctx)
MD2 context setup.
void mbedtls_md2_finish(mbedtls_md2_context *ctx, unsigned char output[16])
MD2 final digest.
Configuration options (set of defines)
int mbedtls_md2_self_test(int verbose)
Checkup routine.
void mbedtls_md2_init(mbedtls_md2_context *ctx)
Initialize MD2 context.
void mbedtls_md2_clone(mbedtls_md2_context *dst, const mbedtls_md2_context *src)
Clone (the state of) an MD2 context.
void mbedtls_md2_update(mbedtls_md2_context *ctx, const unsigned char *input, size_t ilen)
MD2 process buffer.
MD2 context structure.
Definition: md2.h:47
void mbedtls_md2_free(mbedtls_md2_context *ctx)
Clear MD2 context.
void mbedtls_md2_process(mbedtls_md2_context *ctx)