11 RCSIDH(md4_h,
"$Id: 6c8f5faf40a7a485f8eb174f28f25bcf4cfa2bbb $")
13 #ifdef HAVE_INTTYPES_H
14 # include <inttypes.h>
17 #ifdef HAVE_SYS_TYPES_H
18 # include <sys/types.h>
27 #ifdef HAVE_OPENSSL_EVP_H
28 # include <openssl/evp.h>
35 #ifndef MD4_DIGEST_LENGTH
36 # define MD4_DIGEST_LENGTH 16
39 #ifndef HAVE_OPENSSL_EVP_H
55 # define MD4_BLOCK_LENGTH 64
56 # define MD4_DIGEST_STRING_LENGTH (MD4_DIGEST_LENGTH * 2 + 1)
74 # define FR_MD4_CTX EVP_MD_CTX
75 # define fr_md4_init(_ctx) do { \
76 EVP_MD_CTX_init(_ctx);\
77 EVP_DigestInit(_ctx, EVP_md4());\
79 # define fr_md4_update EVP_DigestUpdate
80 # define fr_md4_final(_out, _ctx) EVP_DigestFinal_ex(_ctx, _out, NULL)
84 void fr_md4_calc(uint8_t out[MD4_DIGEST_LENGTH], uint8_t
const *in,
size_t inlen);
uint32_t count[2]
Number of bits, mod 2^64.
void fr_md4_calc(uint8_t out[MD4_DIGEST_LENGTH], uint8_t const *in, size_t inlen)
Calculate the MD4 hash of the contents of a buffer.
void fr_md4_init(FR_MD4_CTX *ctx)
Initialise a new MD4 context.
void fr_md4_transform(uint32_t buf[4], uint8_t const inc[MD4_BLOCK_LENGTH]) CC_BOUNDED(__minbytes__
void fr_md4_update(FR_MD4_CTX *ctx, uint8_t const *in, size_t inlen) CC_BOUNDED(__string__
void void fr_md4_final(uint8_t out[MD4_DIGEST_LENGTH], FR_MD4_CTX *ctx) CC_BOUNDED(__minbytes__
struct FR_MD4Context FR_MD4_CTX
#define MD4_DIGEST_LENGTH
#define USES_APPLE_DEPRECATED_API
uint8_t buffer[MD4_BLOCK_LENGTH]
Input buffer.