Rizin
unix-like reverse engineering framework and cli tools
|
#include "crca.h"
Go to the source code of this file.
Macros | |
#define | CRC_PRESET(crc, size, reflect, poly, xout) { UTCRC_C(crc), (size), (reflect), UTCRC_C(poly), UTCRC_C(xout) } |
Functions | |
void | crc_init_custom (RzCrc *ctx, utcrc crc, ut32 size, int reflect, utcrc poly, utcrc xout) |
void | crc_update (RzCrc *ctx, const ut8 *data, ut32 sz) |
void | crc_final (RzCrc *ctx, utcrc *r) |
void | crc_init_preset (RzCrc *ctx, RzCrcPresets preset) |
utcrc | rz_hash_crc_preset (const ut8 *data, ut32 size, RzCrcPresets preset) |
Variables | |
RzCrc | crc_presets [] |
Definition at line 38 of file crca.c.
Referenced by plugin_crca_final(), and rz_hash_crc_preset().
void crc_init_preset | ( | RzCrc * | ctx, |
RzCrcPresets | preset | ||
) |
Definition at line 114 of file crca.c.
References RzCrc::crc, crc_presets, RzCrc::poly, preset, RzCrc::reflect, RzCrc::size, and RzCrc::xout.
Referenced by rz_hash_crc_preset().
utcrc rz_hash_crc_preset | ( | const ut8 * | data, |
ut32 | size, | ||
RzCrcPresets | preset | ||
) |
Definition at line 122 of file crca.c.
References crc_final(), crc_init_preset(), CRC_PRESET_SIZE, crc_update(), preset, and r.
RzCrc crc_presets[] |
Definition at line 60 of file crca.c.
Referenced by crc_init_preset().