16 for (
size_t index = 0; index <
len; index++) {
17 ctx->low = (
ctx->low + data[index]) % 65521;
18 ctx->high = (
ctx->high +
ctx->low) % 65521;
bool rz_adler32_init(RzAdler32 *ctx)
bool rz_adler32_update(RzAdler32 *ctx, const ut8 *data, size_t len)
bool rz_adler32_final(ut8 *digest, RzAdler32 *ctx)
#define rz_return_val_if_fail(expr, val)
static void rz_write_le32(void *dest, ut32 val)