9RCSIDH(md4_h,
"$Id: 94ed5698a6d67176048b24235829f1bc8f6221ea $")
15#include <freeradius-devel/build.h>
16#include <freeradius-devel/missing.h>
24#ifndef MD4_DIGEST_LENGTH
25# define MD4_DIGEST_LENGTH 16
56#define fr_md4_ctx_reset(_ctx) fr_md4_funcs->reset(_ctx)
63#define fr_md4_ctx_copy(_dst, _src) fr_md4_funcs->copy(_dst, _src)
71#define fr_md4_ctx_alloc() fr_md4_funcs->alloc()
78#define fr_md4_ctx_free(_ctx) fr_md4_funcs->free(_ctx)
86#define fr_md4_update(_ctx, _in, _inlen) fr_md4_funcs->update(_ctx, _in, _inlen)
93#define fr_md4_final(_out, _ctx) fr_md4_funcs->final(_out, _ctx)
void(* fr_md4_final_t)(uint8_t out[static MD4_DIGEST_LENGTH], fr_md4_ctx_t *ctx)
fr_md4_ctx_t *(* fr_md4_ctx_alloc_t)(void)
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_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)
void(* fr_md4_ctx_copy_t)(fr_md4_ctx_t *dst, fr_md4_ctx_t const *src)
#define MD4_DIGEST_LENGTH
void(* fr_md4_ctx_reset_t)(fr_md4_ctx_t *ctx)
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)
fr_md4_funcs_t const * fr_md4_funcs
Swap a single pointer, so all functions get swapped as an atomic operation.
static size_t char fr_sbuff_t size_t inlen
static size_t char ** out