MD4 message digest algorithm (hash function). More...
#include "config.h"
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | mbedtls_md4_context |
MD4 context structure. More... | |
Defines | |
#define | MBEDTLS_ERR_MD4_HW_ACCEL_FAILED -0x002D |
#define | MBEDTLS_DEPRECATED |
#define | MBEDTLS_DEPRECATED |
Functions | |
void | mbedtls_md4_init (mbedtls_md4_context *ctx) |
Initialize MD4 context. | |
void | mbedtls_md4_free (mbedtls_md4_context *ctx) |
Clear MD4 context. | |
void | mbedtls_md4_clone (mbedtls_md4_context *dst, const mbedtls_md4_context *src) |
Clone (the state of) an MD4 context. | |
int | mbedtls_md4_starts_ret (mbedtls_md4_context *ctx) |
MD4 context setup. | |
int | mbedtls_md4_update_ret (mbedtls_md4_context *ctx, const unsigned char *input, size_t ilen) |
MD4 process buffer. | |
int | mbedtls_md4_finish_ret (mbedtls_md4_context *ctx, unsigned char output[16]) |
MD4 final digest. | |
int | mbedtls_internal_md4_process (mbedtls_md4_context *ctx, const unsigned char data[64]) |
MD4 process data block (internal use only). | |
static MBEDTLS_DEPRECATED void | mbedtls_md4_starts (mbedtls_md4_context *ctx) |
MD4 context setup. | |
static MBEDTLS_DEPRECATED void | mbedtls_md4_update (mbedtls_md4_context *ctx, const unsigned char *input, size_t ilen) |
MD4 process buffer. | |
static MBEDTLS_DEPRECATED void | mbedtls_md4_finish (mbedtls_md4_context *ctx, unsigned char output[16]) |
MD4 final digest. | |
static MBEDTLS_DEPRECATED void | mbedtls_md4_process (mbedtls_md4_context *ctx, const unsigned char data[64]) |
MD4 process data block (internal use only). | |
int | mbedtls_md4_ret (const unsigned char *input, size_t ilen, unsigned char output[16]) |
Output = MD4( input buffer ). | |
static MBEDTLS_DEPRECATED 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. |
MD4 message digest algorithm (hash function).
Definition in file md4.h.
#define MBEDTLS_ERR_MD4_HW_ACCEL_FAILED -0x002D |
int mbedtls_internal_md4_process | ( | mbedtls_md4_context * | ctx, | |
const unsigned char | data[64] | |||
) |
MD4 process data block (internal use only).
ctx | MD4 context | |
data | buffer holding one block of data |
Referenced by mbedtls_md4_process().
static MBEDTLS_DEPRECATED void mbedtls_md4 | ( | const unsigned char * | input, | |
size_t | ilen, | |||
unsigned char | output[16] | |||
) | [inline, static] |
Output = MD4( input buffer ).
input | buffer holding the data | |
ilen | length of the input data | |
output | MD4 checksum result |
Definition at line 312 of file md4.h.
References mbedtls_md4_ret().
void mbedtls_md4_clone | ( | mbedtls_md4_context * | dst, | |
const mbedtls_md4_context * | src | |||
) |
Clone (the state of) an MD4 context.
dst | The destination context | |
src | The context to be cloned |
static MBEDTLS_DEPRECATED void mbedtls_md4_finish | ( | mbedtls_md4_context * | ctx, | |
unsigned char | output[16] | |||
) | [inline, static] |
MD4 final digest.
ctx | MD4 context | |
output | MD4 checksum result |
Definition at line 232 of file md4.h.
References mbedtls_md4_finish_ret().
int mbedtls_md4_finish_ret | ( | mbedtls_md4_context * | ctx, | |
unsigned char | output[16] | |||
) |
MD4 final digest.
ctx | MD4 context | |
output | MD4 checksum result |
Referenced by mbedtls_md4_finish().
void mbedtls_md4_free | ( | mbedtls_md4_context * | ctx | ) |
Clear MD4 context.
ctx | MD4 context to be cleared |
void mbedtls_md4_init | ( | mbedtls_md4_context * | ctx | ) |
Initialize MD4 context.
ctx | MD4 context to be initialized |
static MBEDTLS_DEPRECATED void mbedtls_md4_process | ( | mbedtls_md4_context * | ctx, | |
const unsigned char | data[64] | |||
) | [inline, static] |
MD4 process data block (internal use only).
ctx | MD4 context | |
data | buffer holding one block of data |
Definition at line 252 of file md4.h.
References mbedtls_internal_md4_process().
int mbedtls_md4_ret | ( | const unsigned char * | input, | |
size_t | ilen, | |||
unsigned char | output[16] | |||
) |
Output = MD4( input buffer ).
input | buffer holding the data | |
ilen | length of the input data | |
output | MD4 checksum result |
Referenced by mbedtls_md4().
int mbedtls_md4_self_test | ( | int | verbose | ) |
Checkup routine.
static MBEDTLS_DEPRECATED void mbedtls_md4_starts | ( | mbedtls_md4_context * | ctx | ) | [inline, static] |
MD4 context setup.
ctx | context to be initialized |
Definition at line 191 of file md4.h.
References mbedtls_md4_starts_ret().
int mbedtls_md4_starts_ret | ( | mbedtls_md4_context * | ctx | ) |
MD4 context setup.
ctx | context to be initialized |
Referenced by mbedtls_md4_starts().
static MBEDTLS_DEPRECATED void mbedtls_md4_update | ( | mbedtls_md4_context * | ctx, | |
const unsigned char * | input, | |||
size_t | ilen | |||
) | [inline, static] |
MD4 process buffer.
ctx | MD4 context | |
input | buffer holding the data | |
ilen | length of the input data |
Definition at line 211 of file md4.h.
References mbedtls_md4_update_ret().
int mbedtls_md4_update_ret | ( | mbedtls_md4_context * | ctx, | |
const unsigned char * | input, | |||
size_t | ilen | |||
) |
MD4 process buffer.
ctx | MD4 context | |
input | buffer holding the data | |
ilen | length of the input data |
Referenced by mbedtls_md4_update().