Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
9a9a466e
Commit
9a9a466e
authored
Sep 05, 2016
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define NETTLE_CURVE25519_RFC7748, and document it.
parent
9aafb117
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
ChangeLog
ChangeLog
+6
-0
curve25519.h
curve25519.h
+3
-0
nettle.texinfo
nettle.texinfo
+14
-0
No files found.
ChangeLog
View file @
9a9a466e
2016-09-05 Niels Möller <nisse@lysator.liu.se>
* curve25519.h (NETTLE_CURVE25519_RFC7748): New preprocessor
constant.
* nettle.texinfo: Document it.
2016-09-03 Niels Möller <nisse@lysator.liu.se>
* config.make.in (.SUFFIXES): Delete no longer used .p$(OBJEXT).
...
...
curve25519.h
View file @
9a9a466e
...
...
@@ -44,6 +44,9 @@ extern "C" {
#define CURVE25519_SIZE 32
/* Indicates that curve25519_mul conforms to RFC 7748. */
#define NETTLE_CURVE25519_RFC7748 1
void
curve25519_mul_g
(
uint8_t
*
q
,
const
uint8_t
*
n
);
...
...
nettle.texinfo
View file @
9a9a466e
...
...
@@ -4337,6 +4337,20 @@ by @cite{RFC 7748}. Its the output is therefore well defined for
@emph
{
all
}
possible inputs, no matter if the input string represents a
valid point on the curve or not.
Note that the curve25519 implementation in earlier versions from Nettle
deviates slightly from @cite
{
RFC 7748
}
, in that bit 255 of the @math
{
x
}
coordinate of the point input to curve25519
_
mul was not ignored. The
@file
{
nette/curve25519.h
}
defines a preprocessor symbol
@code
{
NETTLE
_
CURVE25519
_
RFC7748
}
to indicate conformance with the
standard.
Nettle defines Curve 25519 in @file
{
<nettle/curve25519.h>
}
.
@defvr Constant NETTLE
_
CURVE25519
_
RFC7748
Defined to 1 in Nettle versions conforming to RFC 7748. Undefined in
earlier versions.
@end defvr
@defvr Constant CURVE25519
_
SIZE
The size of the strings representing curve25519 points and scalars, 32.
@end defvr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment