Browse Source

Fix benchmark AES lib

pull/60/head
emanuele-f 6 years ago
parent
commit
200cfd24a3
  1. 2
      Makefile.in
  2. 4
      benchmark.c

2
Makefile.in

@ -76,7 +76,7 @@ supernode: sn.c $(N2N_LIB) n2n.h Makefile
$(CC) $(CFLAGS) sn.c $(N2N_LIB) $(LIBS_SN) -o supernode $(CC) $(CFLAGS) sn.c $(N2N_LIB) $(LIBS_SN) -o supernode
benchmark: benchmark.c $(N2N_LIB) n2n_wire.h n2n.h Makefile 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 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 $(CC) $(CFLAGS) example_edge_embed.c $(N2N_LIB) $(LIBS_EDGE) -o example_edge_embed

4
benchmark.c

@ -88,8 +88,8 @@ int main(int argc, char * argv[]) {
transop_twofish_init(&transop_twofish); transop_twofish_init(&transop_twofish);
transop_twofish_setup_psk(&transop_twofish, 0, encrypt_pwd, sizeof(encrypt_pwd)-1); transop_twofish_setup_psk(&transop_twofish, 0, encrypt_pwd, sizeof(encrypt_pwd)-1);
memset(&transop_aes_cbc, 0, sizeof(transop_aes_cbc)); memset(&transop_aes_cbc, 0, sizeof(transop_aes_cbc));
transop_twofish_init(&transop_aes_cbc); transop_aes_init(&transop_aes_cbc);
transop_twofish_setup_psk(&transop_aes_cbc, 0, encrypt_pwd, sizeof(encrypt_pwd)-1); transop_aes_setup_psk(&transop_aes_cbc, 0, encrypt_pwd, sizeof(encrypt_pwd)-1);
/* Run the tests */ /* Run the tests */
run_transop_benchmark("transop_null", &transop_null, pktbuf, c); run_transop_benchmark("transop_null", &transop_null, pktbuf, c);

Loading…
Cancel
Save