|
iPXE
|
MD4 algorithm. More...
#include <stdint.h>#include <assert.h>#include <ipxe/rotate.h>#include <ipxe/crypto.h>#include <ipxe/md4.h>Go to the source code of this file.
Data Structures | |
| struct | md4_variables |
| MD4 variables. More... | |
| struct | md4_step |
| An MD4 step function. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| static uint32_t | md4_f_0_15 (struct md4_variables *v, unsigned int i) |
| f(b,c,d,w) for steps 0 to 15 | |
| static uint32_t | md4_f_16_31 (struct md4_variables *v, unsigned int i) |
| f(b,c,d,w) for steps 16 to 31 | |
| static uint32_t | md4_f_32_47 (struct md4_variables *v, unsigned int i) |
| f(b,c,d,w) for steps 32 to 47 | |
| static void | md4_compress (struct md4_digest_data *dd, const struct md4_digest *digest) |
| Calculate MD4 digest of accumulated data. | |
| MDHASH_ALGORITHM (md4, md4_algorithm, md4_compress, __LITTLE_ENDIAN, struct md4_digest_data, md4_init, MD4_DIGEST_SIZE) | |
| MD4 algorithm. | |
Variables | |
| static const uint8_t | r [3][4] |
| MD4 shift amounts. | |
| static const struct md4_step | md4_steps [4] |
| MD4 steps. | |
| static const struct md4_digest | md4_init |
| MD4 initial digest values. | |
MD4 algorithm.
Definition in file md4.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
static |
f(b,c,d,w) for steps 0 to 15
| v | MD4 variables |
| i | Index within round |
| f | f(b,c,d,w) |
Definition at line 63 of file md4.c.
References md4_variables::b, md4_variables::c, md4_variables::d, and md4_variables::w.
|
static |
f(b,c,d,w) for steps 16 to 31
| v | MD4 variables |
| i | Index within round |
| f | f(b,c,d,w) |
Definition at line 74 of file md4.c.
References md4_variables::b, md4_variables::c, md4_variables::d, and md4_variables::w.
|
static |
f(b,c,d,w) for steps 32 to 47
| v | MD4 variables |
| i | Index within round |
| f | f(b,c,d,w) |
Definition at line 86 of file md4.c.
References md4_variables::b, md4_variables::c, md4_variables::d, and md4_variables::w.
|
static |
Calculate MD4 digest of accumulated data.
| dd | Digest and data block |
| digest | Copy of current digest value |
Definition at line 128 of file md4.c.
References md4_variables::a, md4_variables::b, build_assert, md4_variables::c, container_of, md4_variables::d, DBGC2, md4_digest_data::digest, md4_step::f, md4_digest::h, md4_algorithm, md4_steps, r, rol32(), step(), typeof(), u, and md4_variables::w.
Referenced by MDHASH_ALGORITHM().
| MDHASH_ALGORITHM | ( | md4 | , |
| md4_algorithm | , | ||
| md4_compress | , | ||
| __LITTLE_ENDIAN | , | ||
| struct md4_digest_data | , | ||
| md4_init | , | ||
| MD4_DIGEST_SIZE | ) |
MD4 algorithm.
References __LITTLE_ENDIAN, md4_algorithm, md4_compress(), MD4_DIGEST_SIZE, and md4_init.
|
static |
MD4 shift amounts.
Definition at line 50 of file md4.c.
Referenced by __ath9k_hw_init(), __attribute__(), af_packet_nic_poll(), ar5008_write_rf_array(), ath9k_hw_channel_change(), ath9k_hw_reset(), ath9k_hw_write_array(), ath9k_start(), ath_radio_disable(), ath_reset(), ath_set_channel(), bcom_phy_init(), ecdsa_alloc(), ecdsa_sign_rs(), ecdsa_verify_rs(), fls(), genesis_mac_init(), gma_write16(), gma_write16(), md4_compress(), md5_compress(), tap_poll(), xm_write16(), and xm_write32().
|
static |
MD4 steps.
Definition at line 108 of file md4.c.
Referenced by md4_compress().
|
static |
MD4 initial digest values.
Definition at line 118 of file md4.c.
Referenced by MDHASH_ALGORITHM().