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
Wim Lewis
nettle
Commits
2fd0eb16
Commit
2fd0eb16
authored
Feb 27, 2013
by
Niels Möller
Browse files
Fixed bug in 64-bit ecc_384_modp.
parent
ad85f7ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
2fd0eb16
2013-02-27 Niels Möller <nisse@lysator.liu.se>
* ecc-384.c (ecc_384_modp): Fixed typo which broke carry handling
in the 64-bit version.
* examples/ecc-benchmark.c (bench_add_jjj): Typo fix, benchmark
the right function.
...
...
ecc-384.c
View file @
2fd0eb16
...
...
@@ -114,7 +114,7 @@ ecc_384_modp (const struct ecc_curve *ecc, mp_limb_t *rp)
/* Reduce from 9 to 6 limbs */
tp
[
0
]
=
0
;
mpn_copyi
(
tp
+
1
,
rp
+
6
,
2
);
tp
[
3
]
=
rp
[
8
]
-
=
mpn_sub_n
(
tp
,
tp
,
rp
+
6
,
3
);
tp
[
3
]
=
rp
[
8
]
-
mpn_sub_n
(
tp
,
tp
,
rp
+
6
,
3
);
tp
[
4
]
=
mpn_lshift
(
tp
,
tp
,
4
,
32
);
cy
=
mpn_add_n
(
rp
,
rp
,
rp
+
6
,
3
);
...
...
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