45 unsigned long total[2];
46 unsigned long state[4];
47 unsigned char buffer[64];
77 void md5_csum(
const unsigned char *input,
int ilen,
unsigned char output[16]);
85 int md5_file(
const char *path,
unsigned char output[16]);
95 void md5_hmac(
unsigned char *key,
int keylen,
96 const unsigned char *input,
int ilen,
97 unsigned char output[16]);
112 void md5_hex(
const void *input,
size_t ilen,
char output[33]);
119 void md5_string(
const char *input,
char output[33]);
125 int64_t
md5_hash(
const char *input);
void md5_hmac(unsigned char *key, int keylen, const unsigned char *input, int ilen, unsigned char output[16])
Calculates a "Hashed MAC" of an input buffer combined with a secret key.
int64_t md5_hash(const char *input)
Returns a 64-bit hash checksum of a null terminated input buffer.
int md5_file(const char *path, unsigned char output[16])
Convenience function to calculate the MD5 sum of a file.
void digest_to_trunc_modified_base64(const char digest[16], char output[17])
Get the modified base64 encoded string of a 16 byte message digest see http://en.wikipedia.org/wiki/Base64#URL_applications for more information.
void md5_trunc_modified_base64(const char *input, char output[17])
Get the modified base64 encoded string of the first 12 Bytes of the 16 Byte MD5 code of a null termin...
void md5_update(md5_context *ctx, const unsigned char *input, int ilen)
Adds data to the MD5 process buffer.
void md5_starts(md5_context *ctx)
Initialize and setup a MD5 context structure.
void md5_csum(const unsigned char *input, int ilen, unsigned char output[16])
Convenience function to calculate the MD5 sum of an input buffer.
void md5_string(const char *input, char output[33])
Calculates the hex string of MD5 of null terminated input.
MD5 context structure; this structure is used to store the internal state of the md5 algorithm...
void md5_finish(md5_context *ctx, unsigned char output[16])
Retrieve the final MD5 digest.
int md5_self_test(void)
Runs a self test.
void md5_hex(const void *input, size_t ilen, char output[33])
Convenience function to calculate the MD5 sum of an input buffer; returns string with the MD5 encoded...