md4.h
Go to the documentation of this file.
#ifndef MBEDTLS_MD4_H
#define MBEDTLS_MD4_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
#include <stddef.h>
#include <stdint.h>
#if !defined(MBEDTLS_MD4_ALT)
// Regular implementation
//
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
uint32_t total[2];
uint32_t state[4];
unsigned char buffer[64];
}
mbedtls_md4_context;
void mbedtls_md4_init( mbedtls_md4_context *ctx );
void mbedtls_md4_free( mbedtls_md4_context *ctx );
void mbedtls_md4_clone( mbedtls_md4_context *dst,
const mbedtls_md4_context *src );
void mbedtls_md4_starts( mbedtls_md4_context *ctx );
void mbedtls_md4_update( mbedtls_md4_context *ctx, const unsigned char *input, size_t ilen );
void mbedtls_md4_finish( mbedtls_md4_context *ctx, unsigned char output[16] );
#ifdef __cplusplus
}
#endif
#else /* MBEDTLS_MD4_ALT */
#include "md4_alt.h"
#endif /* MBEDTLS_MD4_ALT */
#ifdef __cplusplus
extern "C" {
#endif
void mbedtls_md4( const unsigned char *input, size_t ilen, unsigned char output[16] );
int mbedtls_md4_self_test( int verbose );
/* Internal use */
void mbedtls_md4_process( mbedtls_md4_context *ctx, const unsigned char data[64] );
#ifdef __cplusplus
}
#endif
#endif /* mbedtls_md4.h */
mbedtls_md4
void mbedtls_md4(const unsigned char *input, size_t ilen, unsigned char output[16])
Output = MD4( input buffer )
mbedtls_md4_self_test
int mbedtls_md4_self_test(int verbose)
Checkup routine.
config.h
Configuration options (set of defines)
mbedtls_md4_process
void mbedtls_md4_process(mbedtls_md4_context *ctx, const unsigned char data[64])