Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
c05b9ec8
Commit
c05b9ec8
authored
Feb 06, 2014
by
Niels Möller
Browse files
nettle-benchmark: Fixed memset calls.
parent
5fea7663
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c05b9ec8
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.
...
...
examples/nettle-benchmark.c
View file @
c05b9ec8
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
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