Permalink
Browse files

Fix benchmark AES lib

  • Loading branch information...
emanuele-f committed Jan 28, 2019
1 parent 5d7db5f commit 200cfd24a30c25b93efda969f639028575dd198c
Showing with 3 additions and 3 deletions.
  1. +1 −1 Makefile.in
  2. +2 −2 benchmark.c
@@ -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
@@ -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);

0 comments on commit 200cfd2

Please sign in to comment.