Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Wim Lewis
nettle
Commits
2fd0eb16
Commit
2fd0eb16
authored
Feb 27, 2013
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in 64-bit ecc_384_modp.
parent
ad85f7ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
ChangeLog
ChangeLog
+3
-0
ecc-384.c
ecc-384.c
+1
-1
No files found.
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
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