Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Benjamin J. Thompson
Tor
Commits
3687526c
Commit
3687526c
authored
9 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'teor/bug18384'
parents
7a782820
b76b9d77
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug18384
+5
-0
5 additions, 0 deletions
changes/bug18384
src/ext/ed25519/donna/ed25519_tor.c
+4
-4
4 additions, 4 deletions
src/ext/ed25519/donna/ed25519_tor.c
with
9 additions
and
4 deletions
changes/bug18384
0 → 100644
+
5
−
0
View file @
3687526c
o Minor bugfixes (crypto, static analysis):
- Silence spurious clang-scan warnings in the ed25519_donna code
by explicitly initialising some objects.
Fixes bug 18384; bugfix on 0f3eeca9 in 0.2.7.2-alpha.
Patch by "teor".
This diff is collapsed.
Click to expand it.
src/ext/ed25519/donna/ed25519_tor.c
+
4
−
4
View file @
3687526c
...
...
@@ -168,8 +168,8 @@ ed25519_donna_seckey_expand(unsigned char *sk, const unsigned char *skseed)
int
ed25519_donna_pubkey
(
unsigned
char
*
pk
,
const
unsigned
char
*
sk
)
{
bignum256modm
a
;
ge25519
ALIGN
(
16
)
A
;
bignum256modm
a
=
{
0
}
;
ge25519
ALIGN
(
16
)
A
=
{{
0
},
{
0
},
{
0
},
{
0
}}
;
/* A = aB */
expand256_modm
(
a
,
sk
,
32
);
...
...
@@ -204,8 +204,8 @@ ed25519_donna_sign(unsigned char *sig, const unsigned char *m, size_t mlen,
const
unsigned
char
*
sk
,
const
unsigned
char
*
pk
)
{
ed25519_hash_context
ctx
;
bignum256modm
r
,
S
,
a
;
ge25519
ALIGN
(
16
)
R
;
bignum256modm
r
=
{
0
}
,
S
,
a
;
ge25519
ALIGN
(
16
)
R
=
{{
0
},
{
0
},
{
0
},
{
0
}}
;
hash_512bits
hashr
,
hram
;
/* This is equivalent to the removed `ED25519_FN(ed25519_sign)` routine,
...
...
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