Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
4fd3dd3e
Commit
4fd3dd3e
authored
Jun 20, 2014
by
Nikos Mavrogiannopoulos
Committed by
Niels Möller
Jun 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn RSA blinding off in openssl RSA benchmark.
That allows direct comparison with hogweed's RSA results.
parent
8bd3d0ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
examples/hogweed-benchmark.c
examples/hogweed-benchmark.c
+1
-0
No files found.
examples/hogweed-benchmark.c
View file @
4fd3dd3e
...
...
@@ -521,6 +521,7 @@ bench_openssl_rsa_init (unsigned size)
ctx
->
ref
=
xalloc
(
RSA_size
(
ctx
->
key
));
ctx
->
signature
=
xalloc
(
RSA_size
(
ctx
->
key
));
ctx
->
digest
=
hash_string
(
&
nettle_sha1
,
3
,
"foo"
);
RSA_blinding_off
(
ctx
->
key
);
if
(
!
RSA_sign
(
NID_sha1
,
ctx
->
digest
,
SHA1_DIGEST_SIZE
,
ctx
->
ref
,
&
ctx
->
siglen
,
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