diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-02-06 13:40:43 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-02-06 13:40:43 +0100 |
commit | c05b9ec829c012f34a9bfc320405679df3826e52 (patch) | |
tree | 506772948ecb948ad5509c51c0343bbf3f6fd407 | |
parent | 5fea766364ad0b6b2b0ac6f3ff2389d977ddc1e1 (diff) | |
download | nettle-c05b9ec829c012f34a9bfc320405679df3826e52.tar.gz |
nettle-benchmark: Fixed memset calls.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | examples/nettle-benchmark.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +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. diff --git a/examples/nettle-benchmark.c b/examples/nettle-benchmark.c index 7e15a18e..d66ce71e 100644 --- a/examples/nettle-benchmark.c +++ b/examples/nettle-benchmark.c @@ -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); |