|
libaaruformat 1.0
Aaru Data Preservation Suite - Format Library
|
Go to the source code of this file.
Macros | |
| #define | AARU_RESTRICT |
| #define | LIKELY(x) |
| #define | UNLIKELY(x) |
| #define | HOT |
| #define | MD5_MAX_UNROLL 4 |
| #define | MD5_PREFETCH_DISTANCE_BLOCKS 8 |
| #define | MD5_ENABLE_PREFETCH 1 |
| #define | MD5_UNROLL8_THRESHOLD 8192UL |
| #define | MD5_UNROLL4_THRESHOLD 2048UL |
| #define | MD5_UNROLL2_THRESHOLD 512UL |
| #define | F(x, y, z) |
| #define | G(x, y, z) |
| #define | H(x, y, z) |
| #define | H2(x, y, z) |
| #define | I(x, y, z) |
| #define | ROTL32(x, s) |
| #define | STEP(f, a, b, c, d, x, t, s) |
| #define | SET(n) |
| #define | GET(n) |
| #define | OUT(dst, src) |
Functions | |
| static FORCE_INLINE void | md5_process_block_loaded (uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, const unsigned char *ptr) |
| static const void * | body (md5_ctx *ctx, const void *data, unsigned long size) |
| void | aaruf_md5_init (md5_ctx *ctx) |
| void | aaruf_md5_update (md5_ctx *ctx, const void *data, unsigned long size) |
| void | aaruf_md5_final (md5_ctx *ctx, unsigned char *result) |
| void | aaruf_md5_buffer (const void *data, unsigned long size, unsigned char *result) |
| #define AARU_RESTRICT |
Definition at line 49 of file md5.c.
Referenced by aaruf_md5_update(), body(), and md5_process_block_loaded().
| #define F | ( | x, | |
| y, | |||
| z ) |
Definition at line 105 of file md5.c.
Referenced by body(), and md5_process_block_loaded().
| #define G | ( | x, | |
| y, | |||
| z ) |
Definition at line 106 of file md5.c.
Referenced by body(), and md5_process_block_loaded().
| #define GET | ( | n | ) |
| #define H | ( | x, | |
| y, | |||
| z ) |
Definition at line 107 of file md5.c.
Referenced by body(), and md5_process_block_loaded().
| #define H2 | ( | x, | |
| y, | |||
| z ) |
Definition at line 108 of file md5.c.
Referenced by body(), and md5_process_block_loaded().
| #define HOT |
Definition at line 65 of file md5.c.
Referenced by body(), and md5_process_block_loaded().
| #define I | ( | x, | |
| y, | |||
| z ) |
Definition at line 109 of file md5.c.
Referenced by body(), and md5_process_block_loaded().
| #define LIKELY | ( | x | ) |
| #define OUT | ( | dst, | |
| src ) |
Definition at line 469 of file md5.c.
Referenced by aaruf_md5_final().
| #define ROTL32 | ( | x, | |
| s ) |
| #define SET | ( | n | ) |
| #define STEP | ( | f, | |
| a, | |||
| b, | |||
| c, | |||
| d, | |||
| x, | |||
| t, | |||
| s ) |
| #define UNLIKELY | ( | x | ) |
| void aaruf_md5_buffer | ( | const void * | data, |
| unsigned long | size, | ||
| unsigned char * | result ) |
Definition at line 508 of file md5.c.
References AARU_CALL, AARU_EXPORT, aaruf_md5_final(), aaruf_md5_init(), and aaruf_md5_update().
| void aaruf_md5_final | ( | md5_ctx * | ctx, |
| unsigned char * | result ) |
Definition at line 475 of file md5.c.
References md5_ctx::a, AARU_CALL, AARU_EXPORT, md5_ctx::b, body(), md5_ctx::buffer, md5_ctx::c, md5_ctx::d, md5_ctx::hi, md5_ctx::lo, and OUT.
Referenced by aaruf_md5_buffer(), and write_checksum_block().
| void aaruf_md5_init | ( | md5_ctx * | ctx | ) |
Definition at line 425 of file md5.c.
References md5_ctx::a, AARU_CALL, AARU_EXPORT, md5_ctx::b, md5_ctx::c, md5_ctx::d, md5_ctx::hi, and md5_ctx::lo.
Referenced by aaruf_create(), and aaruf_md5_buffer().
| void aaruf_md5_update | ( | md5_ctx * | ctx, |
| const void * | data, | ||
| unsigned long | size ) |
Definition at line 436 of file md5.c.
References AARU_CALL, AARU_EXPORT, AARU_RESTRICT, body(), md5_ctx::buffer, md5_ctx::hi, LIKELY, md5_ctx::lo, and UNLIKELY.
Referenced by aaruf_md5_buffer(), aaruf_write_sector(), and aaruf_write_sector_long().
|
static |
Definition at line 268 of file md5.c.
References md5_ctx::a, AARU_RESTRICT, md5_ctx::b, md5_ctx::c, md5_ctx::d, F, G, GET, H, H2, HOT, I, MD5_PREFETCH_DISTANCE_BLOCKS, md5_process_block_loaded(), MD5_UNROLL2_THRESHOLD, MD5_UNROLL4_THRESHOLD, MD5_UNROLL8_THRESHOLD, SET, and STEP.
Referenced by aaruf_md5_final(), and aaruf_md5_update().
|
static |