The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Structures and prototypes for our local MD4 implementation. More...
#include <freeradius-devel/build.h>
#include <freeradius-devel/missing.h>
#include <inttypes.h>
#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | MD4_DIGEST_LENGTH 16 |
Typedefs | |
typedef fr_md4_ctx_t *(* | fr_md4_ctx_alloc_t) (void) |
Allocation function for MD4 digest context. More... | |
typedef void(* | fr_md4_ctx_copy_t) (fr_md4_ctx_t *dst, fr_md4_ctx_t const *src) |
Copy the contents of a ctx. More... | |
typedef void(* | fr_md4_ctx_free_t) (fr_md4_ctx_t **ctx) |
Free function for MD4 digest ctx. More... | |
typedef void(* | fr_md4_ctx_reset_t) (fr_md4_ctx_t *ctx) |
Reset the ctx to allow reuse. More... | |
typedef void | fr_md4_ctx_t |
typedef void(* | fr_md4_final_t) (uint8_t out[static MD4_DIGEST_LENGTH], fr_md4_ctx_t *ctx) |
Finalise the ctx, producing the digest. More... | |
typedef void(* | fr_md4_update_t) (fr_md4_ctx_t *ctx, uint8_t const *in, size_t inlen) |
Ingest plaintext into the digest. More... | |
Functions | |
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. More... | |
fr_md4_ctx_t * | fr_md4_ctx_alloc_from_list (void) |
Allocate an md4 context from a free list. More... | |
void | fr_md4_ctx_free_from_list (fr_md4_ctx_t **ctx) |
Release an md4 context back to a free list. More... | |
Structures and prototypes for our local MD4 implementation.
Structures and declarations for md4.
Definition in file md4.h.
typedef fr_md4_ctx_t*(* fr_md4_ctx_alloc_t) (void) |
typedef void(* fr_md4_ctx_copy_t) (fr_md4_ctx_t *dst, fr_md4_ctx_t const *src) |
typedef void(* fr_md4_ctx_free_t) (fr_md4_ctx_t **ctx) |
typedef void(* fr_md4_ctx_reset_t) (fr_md4_ctx_t *ctx) |
typedef void fr_md4_ctx_t |
typedef void(* fr_md4_final_t) (uint8_t out[static MD4_DIGEST_LENGTH], fr_md4_ctx_t *ctx) |
typedef void(* fr_md4_update_t) (fr_md4_ctx_t *ctx, uint8_t const *in, size_t inlen) |
Perform a single digest operation on a single input buffer.
Perform a single digest operation on a single input buffer.
[out] | out | Where to write the MD4 digest. Must be a minimum of MD4_DIGEST_LENGTH. |
[in] | in | Data to hash. |
[in] | inlen | Length of the data. |
Definition at line 482 of file md4.c.
fr_md4_ctx_t* fr_md4_ctx_alloc_from_list | ( | void | ) |
void fr_md4_ctx_free_from_list | ( | fr_md4_ctx_t ** | ctx | ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |