keccak_ctx_t ctx;
keccak256_init(&ctx);
keccak_nextBlock(&ctx, null);
- // keccak_lastBlock(&ctx, data, 29);
+ keccak_lastBlock(&ctx, null, 29);
keccak256_ctx2hash(hash, &ctx);
cli_putstr_P(PSTR("\r\n testhash: "));
cli_hexdump(hash, 32);
{ NULL, NULL, NULL }
};
-int main (void){
+int main(void){
main_setup();
shavs_algolist=(hfdesc_t**)algolist;
shavs_ctx.buffersize_B=pgm_read_word(&(shavs_algo->blocksize_b))/8;
uint8_t buffer[shavs_ctx.buffersize_B+5];
shavs_ctx.buffer = buffer;
- fprintf_P(shavs_out_file, PSTR("\nbuffer_size = 0x%04"PRIx16" bytes"));
+ fprintf_P(shavs_out_file, PSTR("\nbuffer_size = 0x%04"PRIx16" bytes"), shavs_ctx.buffersize_B);
for(;;){
shavs_ctx.blocks = 0;
memset(buffer, 0, shavs_ctx.buffersize_B);