From 200cfd24a30c25b93efda969f639028575dd198c Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Mon, 28 Jan 2019 01:44:47 +0100 Subject: [PATCH] Fix benchmark AES lib --- Makefile.in | 2 +- benchmark.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index eefa692..1691d4d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -76,7 +76,7 @@ supernode: sn.c $(N2N_LIB) n2n.h Makefile $(CC) $(CFLAGS) sn.c $(N2N_LIB) $(LIBS_SN) -o supernode benchmark: benchmark.c $(N2N_LIB) n2n_wire.h n2n.h Makefile - $(CC) $(CFLAGS) benchmark.c $(N2N_LIB) $(LIBS_SN) -o benchmark + $(CC) $(CFLAGS) benchmark.c $(N2N_LIB) $(LIBS_EDGE) -o benchmark example_edge_embed: example_edge_embed.c $(N2N_LIB) n2n.h $(CC) $(CFLAGS) example_edge_embed.c $(N2N_LIB) $(LIBS_EDGE) -o example_edge_embed diff --git a/benchmark.c b/benchmark.c index e433698..e8d4e35 100644 --- a/benchmark.c +++ b/benchmark.c @@ -88,8 +88,8 @@ int main(int argc, char * argv[]) { transop_twofish_init(&transop_twofish); transop_twofish_setup_psk(&transop_twofish, 0, encrypt_pwd, sizeof(encrypt_pwd)-1); memset(&transop_aes_cbc, 0, sizeof(transop_aes_cbc)); - transop_twofish_init(&transop_aes_cbc); - transop_twofish_setup_psk(&transop_aes_cbc, 0, encrypt_pwd, sizeof(encrypt_pwd)-1); + transop_aes_init(&transop_aes_cbc); + transop_aes_setup_psk(&transop_aes_cbc, 0, encrypt_pwd, sizeof(encrypt_pwd)-1); /* Run the tests */ run_transop_benchmark("transop_null", &transop_null, pktbuf, c);