Commit c05b9ec8 authored by Niels Möller's avatar Niels Möller

nettle-benchmark: Fixed memset calls.

parent 5fea7663
2014-02-06 Niels Möller <nisse@lysator.liu.se>
* examples/nettle-benchmark.c (time_cipher): Fixed memset calls.
2014-01-30 Niels Möller <nisse@lysator.liu.se>
* Makefile.in (nettle_SOURCES): Arrange in alphabetic order.
......
......@@ -553,7 +553,7 @@ time_cipher(const struct nettle_cipher *cipher)
info.block_size = cipher->block_size;
info.iv = iv;
memset(iv, 0, sizeof(iv));
memset(iv, 0, sizeof(cipher->block_size));
cipher->set_encrypt_key(ctx, key);
......@@ -569,7 +569,7 @@ time_cipher(const struct nettle_cipher *cipher)
info.block_size = cipher->block_size;
info.iv = iv;
memset(iv, 0, sizeof(iv));
memset(iv, 0, sizeof(cipher->block_size));
cipher->set_decrypt_key(ctx, key);
......@@ -586,7 +586,7 @@ time_cipher(const struct nettle_cipher *cipher)
info.block_size = cipher->block_size;
info.iv = iv;
memset(iv, 0, sizeof(iv));
memset(iv, 0, sizeof(cipher->block_size));
cipher->set_encrypt_key(ctx, key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment