123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- #ifndef APR_MD4_H
- #define APR_MD4_H
- #include "apu.h"
- #include "apr_xlate.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define APR_MD4_DIGESTSIZE 16
- typedef struct apr_md4_ctx_t apr_md4_ctx_t;
- struct apr_md4_ctx_t {
-
- apr_uint32_t state[4];
-
- apr_uint32_t count[2];
-
- unsigned char buffer[64];
- #if APR_HAS_XLATE
-
- apr_xlate_t *xlate;
- #endif
- };
- APU_DECLARE(apr_status_t) apr_md4_init(apr_md4_ctx_t *context);
- #if APR_HAS_XLATE
- APU_DECLARE(apr_status_t) apr_md4_set_xlate(apr_md4_ctx_t *context,
- apr_xlate_t *xlate);
- #else
- #define apr_md4_set_xlate(context, xlate) APR_ENOTIMPL
- #endif
- APU_DECLARE(apr_status_t) apr_md4_update(apr_md4_ctx_t *context,
- const unsigned char *input,
- apr_size_t inputLen);
- APU_DECLARE(apr_status_t) apr_md4_final(
- unsigned char digest[APR_MD4_DIGESTSIZE],
- apr_md4_ctx_t *context);
- APU_DECLARE(apr_status_t) apr_md4(unsigned char digest[APR_MD4_DIGESTSIZE],
- const unsigned char *input,
- apr_size_t inputLen);
- #ifdef __cplusplus
- }
- #endif
- #endif
|