md2.h
Go to the documentation of this file.
#ifndef MBEDTLS_MD2_H
#define MBEDTLS_MD2_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
#include <stddef.h>
#if !defined(MBEDTLS_MD2_ALT)
// Regular implementation
//
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
unsigned char cksum[16];
unsigned char state[48];
unsigned char buffer[16];
size_t left;
}
mbedtls_md2_context;
void mbedtls_md2_init( mbedtls_md2_context *ctx );
void mbedtls_md2_free( mbedtls_md2_context *ctx );
void mbedtls_md2_clone( mbedtls_md2_context *dst,
const mbedtls_md2_context *src );
void mbedtls_md2_starts( mbedtls_md2_context *ctx );
void mbedtls_md2_update( mbedtls_md2_context *ctx, const unsigned char *input, size_t ilen );
void mbedtls_md2_finish( mbedtls_md2_context *ctx, unsigned char output[16] );
#ifdef __cplusplus
}
#endif
#else /* MBEDTLS_MD2_ALT */
#include "md2_alt.h"
#endif /* MBEDTLS_MD2_ALT */
#ifdef __cplusplus
extern "C" {
#endif
void mbedtls_md2( const unsigned char *input, size_t ilen, unsigned char output[16] );
int mbedtls_md2_self_test( int verbose );
/* Internal use */
void mbedtls_md2_process( mbedtls_md2_context *ctx );
#ifdef __cplusplus
}
#endif
#endif /* mbedtls_md2.h */
mbedtls_md2
void mbedtls_md2(const unsigned char *input, size_t ilen, unsigned char output[16])
Output = MD2( input buffer )
config.h
Configuration options (set of defines)
mbedtls_md2_self_test
int mbedtls_md2_self_test(int verbose)
Checkup routine.
mbedtls_md2_process
void mbedtls_md2_process(mbedtls_md2_context *ctx)