Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wim Lewis
nettle
Commits
98333dcd
Commit
98333dcd
authored
10 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Fixed window-based ecc_mul_a_eh.
parent
7fa54ac5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+8
-0
8 additions, 0 deletions
ChangeLog
ecc-internal.h
+3
-2
3 additions, 2 deletions
ecc-internal.h
ecc-mul-a-eh.c
+0
-3
0 additions, 3 deletions
ecc-mul-a-eh.c
with
11 additions
and
5 deletions
ChangeLog
+
8
−
0
View file @
98333dcd
2014-08-02 Niels Möller <nisse@lysator.liu.se>
* ecc-internal.h (ECC_MUL_A_EH_WBITS): Set to 4, to enable
window-based scalar multiplication.
* ecc-mul-a-eh.c (table_init) [ECC_MUL_A_EH_WBITS > 0]: Fixed
initialization of TABLE(1).
2014-07-29 Niels Möller <nisse@lysator.liu.se>
* ecc-internal.h (ECC_MUL_A_EH_WBITS): New constant.
...
...
This diff is collapsed.
Click to expand it.
ecc-internal.h
+
3
−
2
View file @
98333dcd
...
...
@@ -68,11 +68,12 @@
/* Window size for ecc_mul_a. Using 4 bits seems like a good choice,
for both Intel x86_64 and ARM Cortex A9. For the larger curves, of
384 and 521 bits, we could improve see
p
d by a few percent if we go
384 and 521 bits, we could improve s
p
eed by a few percent if we go
up to 5 bits, but I don't think that's worth doubling the
storage. */
#define ECC_MUL_A_WBITS 4
#define ECC_MUL_A_EH_WBITS 0
/* And for ecc_mul_a_eh */
#define ECC_MUL_A_EH_WBITS 4
/* Reduces from 2*ecc->size to ecc->size. */
...
...
This diff is collapsed.
Click to expand it.
ecc-mul-a-eh.c
+
0
−
3
View file @
98333dcd
...
...
@@ -91,8 +91,6 @@ ecc_mul_a_eh (const struct ecc_curve *ecc,
}
#else
/* ECC_MUL_A_EH_WBITS > 1 */
#error Not yet working
#define TABLE_SIZE (1U << ECC_MUL_A_EH_WBITS)
#define TABLE_MASK (TABLE_SIZE - 1)
...
...
@@ -111,7 +109,6 @@ table_init (const struct ecc_curve *ecc,
TABLE
(
0
)[
ecc
->
size
]
=
TABLE
(
0
)[
2
*
ecc
->
size
]
=
1
;
ecc_a_to_eh
(
ecc
,
TABLE
(
1
),
p
,
scratch
);
mpn_copyi
(
TABLE
(
1
),
p
,
3
*
ecc
->
size
);
for
(
j
=
2
;
j
<
size
;
j
+=
2
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment