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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Nettle
nettle
Commits
c0ea0a1f
Commit
c0ea0a1f
authored
Mar 25, 2015
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Fixed allocation bug and overwrite in ed25519_sha512_public_key.
parent
9234e662
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
ed25519-sha512-pubkey.c
+1
-1
1 addition, 1 deletion
ed25519-sha512-pubkey.c
with
6 additions
and
1 deletion
ChangeLog
+
5
−
0
View file @
c0ea0a1f
2015-03-25 Niels Möller <nisse@diamant.hack.org>
* ed25519-sha512-pubkey.c: Fix stack overwrite. The digest array
must have room for a complete sha512 digest.
2015-03-19 Niels Möller <nisse@diamant.hack.org>
* Makefile.in (OPT_HOGWEED_SOURCES): Deleted make variable.
...
...
This diff is collapsed.
Click to expand it.
ed25519-sha512-pubkey.c
+
1
−
1
View file @
c0ea0a1f
...
...
@@ -43,7 +43,7 @@ ed25519_sha512_public_key (uint8_t *pub, const uint8_t *priv)
{
const
struct
ecc_curve
*
ecc
=
&
_nettle_curve25519
;
struct
sha512_ctx
ctx
;
uint8_t
digest
[
ED25519_KEY
_SIZE
];
uint8_t
digest
[
SHA512_DIGEST
_SIZE
];
mp_size_t
itch
=
ecc
->
q
.
size
+
_eddsa_public_key_itch
(
ecc
);
mp_limb_t
*
scratch
=
gmp_alloc_limbs
(
itch
);
...
...
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