X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fmain-present-test.c;h=b4e5b4967ca6b88f1fc303fdb07c858d0e5868c3;hb=0ce5b31e9772c15cd1514e371a59f04e3a888111;hp=96b0ff71117a1a6e5e21fc2ccc89db327af4e88c;hpb=6483e60140be5fe4ab60de85cdf679fc0518dc99;p=avr-crypto-lib.git diff --git a/test_src/main-present-test.c b/test_src/main-present-test.c index 96b0ff7..b4e5b49 100644 --- a/test_src/main-present-test.c +++ b/test_src/main-present-test.c @@ -27,10 +27,10 @@ #include "debug.h" #include -#include "nessie_bc_test.h" #include "cli.h" #include "performance_test.h" #include "bcal-performance.h" +#include "bcal-nessie.h" #include "bcal_present.h" #include @@ -51,15 +51,7 @@ void present_genctx_dummy(uint8_t* key, uint16_t keysize_b, present_ctx_t* ctx){ } void testrun_nessie_present(void){ - nessie_bc_ctx.blocksize_B = 8; - nessie_bc_ctx.keysize_b = 80; - nessie_bc_ctx.name = algo_name; - nessie_bc_ctx.ctx_size_B = sizeof(present_ctx_t); - nessie_bc_ctx.cipher_enc = (nessie_bc_enc_fpt)present_enc; - nessie_bc_ctx.cipher_dec = (nessie_bc_dec_fpt)present_dec; - nessie_bc_ctx.cipher_genctx = (nessie_bc_gen_fpt)present_genctx_dummy; - - nessie_bc_run(); + bcal_nessie_multiple(algolist); } void testrun_selfenc(uint8_t* key, uint8_t* buffer){