misc/hash-streaming.c
void hash_init(state_t *st, hash_fn hasher, buffer_t target_hash) {
    memset(st, 0, sizeof *st);
    st->hasher = hasher;
    st->target_hash.data = target_hash.data;
    st->target_hash.length = target_hash.length;
}
/* Initialise a new state for streamining to begin. */
Initialise a new state for streamining to begin.
Initialise a new state for streamining to begin .
void hash_init(state_t *st, hash_fn hasher, buffer_t target_hash) {
    memset(st, 0, sizeof *st);
    st->hasher = hasher;
    st->target_hash.data = target_hash.data;
    st->target_hash.length = target_hash.length;
}
void hash_init ( state_t * st , hash_fn hasher , buffer_t target_hash ) { memset ( st , 0 , sizeof * st ) ; st -> hasher = hasher ; st -> target_hash . data = target_hash . data ; st -> target_hash . length = target_hash . length ; }
Initialise a new state for streamining to begin.
Initialise a new state for streamining to begin .