Warning, file /include/md4.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _MD4_H_
0017 #define _MD4_H_
0018
0019 #include <sys/types.h>
0020
0021 #include <stdint.h>
0022
0023 #define MD4_BLOCK_LENGTH 64
0024 #define MD4_DIGEST_LENGTH 16
0025 #define MD4_DIGEST_STRING_LENGTH (MD4_DIGEST_LENGTH * 2 + 1)
0026
0027 typedef struct MD4Context {
0028 uint32_t state[4];
0029 uint64_t count;
0030 uint8_t buffer[MD4_BLOCK_LENGTH];
0031 } MD4_CTX;
0032
0033 #ifdef __cplusplus
0034 extern "C" {
0035 #endif
0036
0037 void MD4Init(MD4_CTX *);
0038 void MD4Update(MD4_CTX *, const uint8_t *, size_t);
0039 void MD4Pad(MD4_CTX *);
0040 void MD4Final(uint8_t [MD4_DIGEST_LENGTH], MD4_CTX *);
0041 void MD4Transform(uint32_t [4], const uint8_t [MD4_BLOCK_LENGTH]);
0042 char *MD4End(MD4_CTX *, char *);
0043 char *MD4File(const char *, char *);
0044 char *MD4FileChunk(const char *, char *, off_t, off_t);
0045 char *MD4Data(const uint8_t *, size_t, char *);
0046
0047 #ifdef __cplusplus
0048 }
0049 #endif
0050
0051 #endif