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
6c8d40f7
Commit
6c8d40f7
authored
Aug 18, 2014
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Renamed curve25519_base -> curve25519_mul_g.
parent
d55f928a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
Makefile.in
+1
-1
1 addition, 1 deletion
Makefile.in
curve25519-mul-g.c
+2
-2
2 additions, 2 deletions
curve25519-mul-g.c
curve25519.h
+3
-3
3 additions, 3 deletions
curve25519.h
testsuite/curve25519-dh-test.c
+2
-2
2 additions, 2 deletions
testsuite/curve25519-dh-test.c
with
13 additions
and
8 deletions
ChangeLog
+
5
−
0
View file @
6c8d40f7
2014-08-18 Niels Möller <nisse@lysator.liu.se>
* curve25519-mul-g.c (curve25519_mul_g): Renamed file and
function, updated callers.
* curve25519-base.c (curve25519_base): ... old names.
* Makefile.in (hogweed_SOURCES): Updated for rename.
* eccdata.c (output_curve): Compute constants needed for
Shanks-Tonelli.
* ecc-25519.c (ecc_modp_powm_2kp1, ecc_25519_sqrt): New functions.
...
...
This diff is collapsed.
Click to expand it.
Makefile.in
+
1
−
1
View file @
6c8d40f7
...
...
@@ -174,7 +174,7 @@ hogweed_SOURCES = sexp.c sexp-format.c \
ecc-point.c ecc-scalar.c ecc-point-mul.c ecc-point-mul-g.c
\
ecc-ecdsa-sign.c ecdsa-sign.c
\
ecc-ecdsa-verify.c ecdsa-verify.c ecdsa-keygen.c
\
curve25519-
base
.c
\
curve25519-
mul-g
.c
\
$(
OPT_HOGWEED_SOURCES
)
HEADERS
=
aes.h arcfour.h arctwo.h asn1.h blowfish.h
\
...
...
This diff is collapsed.
Click to expand it.
curve25519-
base
.c
→
curve25519-
mul-g
.c
+
2
−
2
View file @
6c8d40f7
/* curve25519-
base
.c
/* curve25519-
mul-g
.c
Copyright (C) 2014 Niels Möller
...
...
@@ -42,7 +42,7 @@
/* Intended to be compatible with NaCl's crypto_scalarmult_base. */
void
curve25519_
base
(
uint8_t
*
r
,
const
uint8_t
*
n
)
curve25519_
mul_g
(
uint8_t
*
r
,
const
uint8_t
*
n
)
{
uint8_t
t
[
CURVE25519_SIZE
];
mp_limb_t
*
scratch
;
...
...
This diff is collapsed.
Click to expand it.
curve25519.h
+
3
−
3
View file @
6c8d40f7
...
...
@@ -39,11 +39,11 @@ extern "C" {
#endif
/* Name mangling */
#define curve25519_
base
nettle_curve25519_
base
#define curve25519_
mul_g
nettle_curve25519_
mul_g
#define CURVE25519_SIZE 32
void
curve25519_
base
(
uint8_t
*
q
,
const
uint8_t
*
n
);
curve25519_
mul_g
(
uint8_t
*
q
,
const
uint8_t
*
n
);
#endif
/* NETTLE_CURVE25519_H */
This diff is collapsed.
Click to expand it.
testsuite/curve25519-dh-test.c
+
2
−
2
View file @
6c8d40f7
...
...
@@ -165,10 +165,10 @@ static void
test_g
(
const
uint8_t
*
s
,
const
uint8_t
*
r
)
{
uint8_t
p
[
CURVE25519_SIZE
];
curve25519_
base
(
p
,
s
);
curve25519_
mul_g
(
p
,
s
);
if
(
!
MEMEQ
(
CURVE25519_SIZE
,
p
,
r
))
{
printf
(
"curve25519_
base
failure:
\n
s = "
);
printf
(
"curve25519_
mul_g
failure:
\n
s = "
);
print_hex
(
CURVE25519_SIZE
,
s
);
printf
(
"
\n
p = "
);
print_hex
(
CURVE25519_SIZE
,
p
);
...
...
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