9 RCSIDH(md4_h,
"$Id: 8ae9010f53065f9ecbd6a0a8a9d5311891538d52 $")
15 #include <freeradius-devel/build.h>
16 #include <freeradius-devel/missing.h>
19 #include <sys/types.h>
24 #ifndef MD4_DIGEST_LENGTH
25 # define MD4_DIGEST_LENGTH 16
fr_md4_ctx_t *(* fr_md4_ctx_alloc_t)(void)
Allocation function for MD4 digest context.
void(* fr_md4_final_t)(uint8_t out[static MD4_DIGEST_LENGTH], fr_md4_ctx_t *ctx)
Finalise the ctx, producing the digest.
fr_md4_ctx_alloc_t fr_md4_ctx_alloc
fr_md4_update_t fr_md4_update
void fr_md4_calc(uint8_t out[static MD4_DIGEST_LENGTH], uint8_t const *in, size_t inlen)
Perform a single digest operation on a single input buffer.
fr_md4_ctx_reset_t fr_md4_ctx_reset
fr_md4_ctx_copy_t fr_md4_ctx_copy
fr_md4_final_t fr_md4_final
fr_md4_ctx_t * fr_md4_ctx_alloc_from_list(void)
Allocate an md4 context from a free list.
void(* fr_md4_ctx_free_t)(fr_md4_ctx_t **ctx)
Free function for MD4 digest ctx.
void(* fr_md4_ctx_copy_t)(fr_md4_ctx_t *dst, fr_md4_ctx_t const *src)
Copy the contents of a ctx.
#define MD4_DIGEST_LENGTH
void(* fr_md4_ctx_reset_t)(fr_md4_ctx_t *ctx)
Reset the ctx to allow reuse.
void fr_md4_ctx_free_from_list(fr_md4_ctx_t **ctx)
Release an md4 context back to a free list.
void(* fr_md4_update_t)(fr_md4_ctx_t *ctx, uint8_t const *in, size_t inlen)
Ingest plaintext into the digest.
fr_md4_ctx_free_t fr_md4_ctx_free
static size_t char fr_sbuff_t size_t inlen
static size_t char ** out