nessie_bc_ctx.keysize_b = 128;
nessie_bc_ctx.name = cipher_name;
nessie_bc_ctx.ctx_size_B = sizeof(seed_ctx_t);
- nessie_bc_ctx.cipher_enc = (nessie_bc_enc_fpt)seed_encrypt;
- nessie_bc_ctx.cipher_dec = (nessie_bc_dec_fpt)seed_decrypt;
+ nessie_bc_ctx.cipher_enc = (nessie_bc_enc_fpt)seed_enc;
+ nessie_bc_ctx.cipher_dec = (nessie_bc_dec_fpt)seed_dec;
nessie_bc_ctx.cipher_genctx = (nessie_bc_gen_fpt)seed_genctx_dummy;
nessie_bc_run();
startTimer(1);
- seed_encrypt(data, &ctx);
+ seed_enc(data, &ctx);
t = stopTimer();
uart_putstr_P(PSTR("\r\n\tencrypt time: "));
ultoa((unsigned long)t, str, 10);
startTimer(1);
- seed_decrypt(data, &ctx);
+ seed_dec(data, &ctx);
t = stopTimer();
uart_putstr_P(PSTR("\r\n\tdecrypt time: "));
ultoa((unsigned long)t, str, 10);
seed_init(key, &ctx);
uart_putstr("\r\n plain: ");
uart_hexdump(block,16);
- seed_encrypt(block, &ctx);
+ seed_enc(block, &ctx);
uart_putstr("\r\n crypt: ");
uart_hexdump(block,16);
}
seed_init(key, &ctx);
uart_putstr("\r\n crypt: ");
uart_hexdump(block,16);
- seed_decrypt(block, &ctx);
+ seed_dec(block, &ctx);
uart_putstr("\r\n plain: ");
uart_hexdump(block,16);
}