iPXE
md4.h File Reference

MD4 algorithm. More...

#include <stdint.h>
#include <ipxe/crypto.h>

Go to the source code of this file.

Data Structures

struct  md4_digest
 An MD4 digest. More...
union  md4_block
 An MD4 data block. More...
struct  md4_digest_data
 MD4 digest and data block. More...
union  md4_digest_data_dwords
 MD4 digest and data block. More...
struct  md4_context
 An MD4 context. More...

Macros

#define MD4_CTX_SIZE   sizeof ( struct md4_context )
 MD4 context size.
#define MD4_BLOCK_SIZE   sizeof ( union md4_block )
 MD4 block size.
#define MD4_DIGEST_SIZE   sizeof ( struct md4_digest )
 MD4 digest size.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)

Variables

struct digest_algorithm md4_algorithm
 MD4 algorithm.

Detailed Description

MD4 algorithm.

Definition in file md4.h.

Macro Definition Documentation

◆ MD4_CTX_SIZE

#define MD4_CTX_SIZE   sizeof ( struct md4_context )

MD4 context size.

Definition at line 67 of file md4.h.

Referenced by ntlm_key().

◆ MD4_BLOCK_SIZE

#define MD4_BLOCK_SIZE   sizeof ( union md4_block )

MD4 block size.

Definition at line 70 of file md4.h.

◆ MD4_DIGEST_SIZE

#define MD4_DIGEST_SIZE   sizeof ( struct md4_digest )

MD4 digest size.

Definition at line 73 of file md4.h.

Referenced by ntlm_key().

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

Variable Documentation

◆ md4_algorithm

struct digest_algorithm md4_algorithm
extern

MD4 algorithm.

Definition at line 262 of file md4.c.

262 {
263 .name = "md4",
264 .ctxsize = sizeof ( struct md4_context ),
265 .blocksize = sizeof ( union md4_block ),
266 .digestsize = sizeof ( struct md4_digest ),
267 .init = md4_init,
268 .update = md4_update,
269 .final = md4_final,
270};
static void md4_final(void *ctx, void *out)
Generate MD4 digest.
Definition md4.c:236
static void md4_init(void *ctx)
Initialise MD4 algorithm.
Definition md4.c:126
static void md4_update(void *ctx, const void *data, size_t len)
Accumulate data with MD4 algorithm.
Definition md4.c:213
uint32_t digestsize
Digest size (i.e.
Definition pccrr.h:1
An MD4 context.
Definition md4.h:59
An MD4 digest.
Definition md4.h:17
An MD4 data block.
Definition md4.h:23

Referenced by DIGEST_TEST(), DIGEST_TEST(), DIGEST_TEST(), md4_test_exec(), md4sum_exec(), mschapv2_hash_hash(), mschapv2_password_hash(), and ntlm_key().