The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Structures and prototypes for our local MD5 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 | MD5_DIGEST_LENGTH 16 |
Typedefs | |
typedef fr_md5_ctx_t *(* | fr_md5_ctx_alloc_t) (void) |
Allocation function for MD5 digest context. More... | |
typedef void(* | fr_md5_ctx_copy_t) (fr_md5_ctx_t *dst, fr_md5_ctx_t const *src) |
Copy the contents of a ctx. More... | |
typedef void(* | fr_md5_ctx_free_t) (fr_md5_ctx_t **ctx) |
Free function for MD5 digest ctx. More... | |
typedef void(* | fr_md5_ctx_reset_t) (fr_md5_ctx_t *ctx) |
Reset the ctx to allow reuse. More... | |
typedef void | fr_md5_ctx_t |
typedef void(* | fr_md5_final_t) (uint8_t out[static MD5_DIGEST_LENGTH], fr_md5_ctx_t *ctx) |
Finalise the ctx, producing the digest. More... | |
typedef void(* | fr_md5_update_t) (fr_md5_ctx_t *ctx, uint8_t const *in, size_t inlen) |
Ingest plaintext into the digest. More... | |
Functions | |
int | fr_hmac_md5 (uint8_t digest[static MD5_DIGEST_LENGTH], uint8_t const *in, size_t inlen, uint8_t const *key, size_t key_len) |
void | fr_md5_calc (uint8_t out[static MD5_DIGEST_LENGTH], uint8_t const *in, size_t inlen) |
Perform a single digest operation on a single input buffer. More... | |
fr_md5_ctx_t * | fr_md5_ctx_alloc_from_list (void) |
Allocate an MD5 context from a free list. More... | |
void | fr_md5_ctx_free_from_list (fr_md5_ctx_t **ctx) |
Release an MD5 context back to a free list. More... | |
Structures and prototypes for our local MD5 implementation.
Structures and declarations for md5.
Definition in file md5.h.
typedef fr_md5_ctx_t*(* fr_md5_ctx_alloc_t) (void) |
typedef void(* fr_md5_ctx_copy_t) (fr_md5_ctx_t *dst, fr_md5_ctx_t const *src) |
typedef void(* fr_md5_ctx_free_t) (fr_md5_ctx_t **ctx) |
typedef void(* fr_md5_ctx_reset_t) (fr_md5_ctx_t *ctx) |
typedef void fr_md5_ctx_t |
typedef void(* fr_md5_final_t) (uint8_t out[static MD5_DIGEST_LENGTH], fr_md5_ctx_t *ctx) |
typedef void(* fr_md5_update_t) (fr_md5_ctx_t *ctx, uint8_t const *in, size_t inlen) |
int fr_hmac_md5 | ( | uint8_t | digest[static MD5_DIGEST_LENGTH], |
uint8_t const * | in, | ||
size_t | inlen, | ||
uint8_t const * | key, | ||
size_t | key_len | ||
) |
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 MD5 digest. Must be a minimum of MD5_DIGEST_LENGTH. |
[in] | in | Data to hash. |
[in] | inlen | Length of the data. |
Definition at line 251 of file merged_model.c.
fr_md5_ctx_t* fr_md5_ctx_alloc_from_list | ( | void | ) |
void fr_md5_ctx_free_from_list | ( | fr_md5_ctx_t ** | ctx | ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |