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

nettle-benchmark: Fixed memset calls (amending 2014-02-06 change).

parent baf9ead8
2014-08-23 Niels Möller <nisse@lysator.liu.se>
* examples/nettle-benchmark.c (time_cipher): Fixed memset calls,
amending the totally broken change from 2014-02-06.
2014-07-02 Niels Möller <nisse@lysator.liu.se>
* eccdata.c (ecc_dup): Use mpz_submul_ui, now available in
......
......@@ -524,7 +524,7 @@ time_cipher(const struct nettle_cipher *cipher)
info.block_size = cipher->block_size;
info.iv = iv;
memset(iv, 0, sizeof(cipher->block_size));
memset(iv, 0, cipher->block_size);
cipher->set_encrypt_key(ctx, key);
......@@ -540,7 +540,7 @@ time_cipher(const struct nettle_cipher *cipher)
info.block_size = cipher->block_size;
info.iv = iv;
memset(iv, 0, sizeof(cipher->block_size));
memset(iv, 0, cipher->block_size);
cipher->set_decrypt_key(ctx, key);
......@@ -557,7 +557,7 @@ time_cipher(const struct nettle_cipher *cipher)
info.block_size = cipher->block_size;
info.iv = iv;
memset(iv, 0, sizeof(cipher->block_size));
memset(iv, 0, 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