123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- #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)
- #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
- #include "md4_alt.h"
- #endif
- #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 );
- void mbedtls_md4_process( mbedtls_md4_context *ctx, const unsigned char data[64] );
- #ifdef __cplusplus
- }
- #endif
- #endif
|