Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
a0221c33
Commit
a0221c33
authored
Aug 23, 2014
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nettle-benchmark: Fixed memset calls (amending 2014-02-06 change).
parent
baf9ead8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
ChangeLog
ChangeLog
+5
-0
examples/nettle-benchmark.c
examples/nettle-benchmark.c
+3
-3
No files found.
ChangeLog
View file @
a0221c33
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
...
...
examples/nettle-benchmark.c
View file @
a0221c33
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment