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
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Norbert Pócs
nettle
Commits
23f108fb
Commit
23f108fb
authored
May 17, 2013
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Fixed ECC bug with overlapping arguments to mpn_mul_n.
parent
f6360a08
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+6
-0
6 additions, 0 deletions
ChangeLog
ecc-j-to-a.c
+6
-5
6 additions, 5 deletions
ecc-j-to-a.c
with
12 additions
and
5 deletions
ChangeLog
+
6
−
0
View file @
23f108fb
2013-05-17 Niels Möller <nisse@lysator.liu.se>
* ecc-j-to-a.c (ecc_j_to_a): Fixed ecc_modp_mul call, to avoid
invalid overlap of arguments to mpn_mul_n. Problem tracked down by
Magnus Holmgren.
2013-05-16 Niels Möller <nisse@lysator.liu.se>
2013-05-16 Niels Möller <nisse@lysator.liu.se>
* arm/aes-encrypt-internal.asm: New file, for pre-v6 processors.
* arm/aes-encrypt-internal.asm: New file, for pre-v6 processors.
...
...
This diff is collapsed.
Click to expand it.
ecc-j-to-a.c
+
6
−
5
View file @
23f108fb
...
@@ -46,6 +46,7 @@ ecc_j_to_a (const struct ecc_curve *ecc,
...
@@ -46,6 +46,7 @@ ecc_j_to_a (const struct ecc_curve *ecc,
#define up (scratch + ecc->size)
#define up (scratch + ecc->size)
#define iz2p (scratch + ecc->size)
#define iz2p (scratch + ecc->size)
#define iz3p (scratch + 2*ecc->size)
#define iz3p (scratch + 2*ecc->size)
#define izBp (scratch + 3*ecc->size)
#define tp scratch
#define tp scratch
mp_limb_t
cy
;
mp_limb_t
cy
;
...
@@ -72,11 +73,11 @@ ecc_j_to_a (const struct ecc_curve *ecc,
...
@@ -72,11 +73,11 @@ ecc_j_to_a (const struct ecc_curve *ecc,
if
(
flags
&
1
)
if
(
flags
&
1
)
{
{
/* Divide this common factor by B */
/* Divide this common factor by B */
mpn_copyi
(
iz
3
p
,
izp
,
ecc
->
size
);
mpn_copyi
(
iz
B
p
,
izp
,
ecc
->
size
);
mpn_zero
(
iz
3
p
+
ecc
->
size
,
ecc
->
size
);
mpn_zero
(
iz
B
p
+
ecc
->
size
,
ecc
->
size
);
ecc
->
redc
(
ecc
,
iz
3
p
);
ecc
->
redc
(
ecc
,
iz
B
p
);
ecc_modp_mul
(
ecc
,
iz2p
,
izp
,
iz
3
p
);
ecc_modp_mul
(
ecc
,
iz2p
,
izp
,
iz
B
p
);
}
}
else
else
ecc_modp_sqr
(
ecc
,
iz2p
,
izp
);
ecc_modp_sqr
(
ecc
,
iz2p
,
izp
);
...
...
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