twister_small_init(ctx, 256);
}
-void twister256_next_dummy(void* buffer, void* ctx){
- twister_small_nextBlock(ctx, buffer);
-}
-
-void twister256_last_dummy(void* buffer, uint16_t size_b, void* ctx){
- twister_small_lastBlock(ctx, buffer, size_b);
-}
-
void twister256_ctx2hash_dummy(void* buffer, void* ctx){
twister_small_ctx2hash(buffer, ctx, 256);
}
nessie_hash_ctx.ctx_size_B = sizeof(twister_state_t);
nessie_hash_ctx.name = algo_name;
nessie_hash_ctx.hash_init = (nessie_hash_init_fpt)twister256_init_dummy;
- nessie_hash_ctx.hash_next = (nessie_hash_next_fpt)twister256_next_dummy;
- nessie_hash_ctx.hash_last = (nessie_hash_last_fpt)twister256_last_dummy;
+ nessie_hash_ctx.hash_next = (nessie_hash_next_fpt)twister_small_nextBlock;
+ nessie_hash_ctx.hash_last = (nessie_hash_last_fpt)twister_small_lastBlock;
nessie_hash_ctx.hash_conv = (nessie_hash_conv_fpt)twister256_ctx2hash_dummy;
nessie_hash_run();