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
Maamoun TK
nettle
Commits
7ee8b5bb
Commit
7ee8b5bb
authored
Jan 25, 2020
by
Niels Möller
Browse files
hogweed-benchmark: Pass correct sizes to knuth_lfib_random.
parent
d1dbba1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
7ee8b5bb
2020-01-25 Niels Möller <nisse@lysator.liu.se>
* examples/hogweed-benchmark.c (bench_curve_init): Pass correct
sizes to knuth_lfib_random. Patch contributed by Dmitry Baryshkov.
2020-01-15 Niels Möller <nisse@lysator.liu.se>
2020-01-15 Niels Möller <nisse@lysator.liu.se>
* Makefile.in: Replace suffix rules by pattern rules. Move .asm
* Makefile.in: Replace suffix rules by pattern rules. Move .asm
...
...
examples/hogweed-benchmark.c
View file @
7ee8b5bb
...
@@ -771,12 +771,12 @@ bench_curve_init (unsigned size)
...
@@ -771,12 +771,12 @@ bench_curve_init (unsigned size)
case
255
:
case
255
:
ctx
->
mul
=
curve25519_mul
;
ctx
->
mul
=
curve25519_mul
;
ctx
->
mul_g
=
curve25519_mul_g
;
ctx
->
mul_g
=
curve25519_mul_g
;
knuth_lfib_random
(
&
lfib
,
sizeof
(
CURVE25519_SIZE
)
,
ctx
->
s
);
knuth_lfib_random
(
&
lfib
,
CURVE25519_SIZE
,
ctx
->
s
);
break
;
break
;
case
448
:
case
448
:
ctx
->
mul
=
curve448_mul
;
ctx
->
mul
=
curve448_mul
;
ctx
->
mul_g
=
curve448_mul_g
;
ctx
->
mul_g
=
curve448_mul_g
;
knuth_lfib_random
(
&
lfib
,
sizeof
(
CURVE448_SIZE
)
,
ctx
->
s
);
knuth_lfib_random
(
&
lfib
,
CURVE448_SIZE
,
ctx
->
s
);
break
;
break
;
default:
default:
abort
();
abort
();
...
...
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