summaryrefslogtreecommitdiff
path: root/nettle.texinfo
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2016-09-05 15:17:19 +0200
committerNiels Möller <nisse@lysator.liu.se>2016-09-05 15:17:19 +0200
commit9a9a466e83ca4cb8237199ec102c9af9a482647f (patch)
treebd469ac8b7438a178326ceabbc16449a0f6e9106 /nettle.texinfo
parent9aafb11763f9075608743173ba5ba8053e2efe8a (diff)
downloadnettle-9a9a466e83ca4cb8237199ec102c9af9a482647f.tar.gz
Define NETTLE_CURVE25519_RFC7748, and document it.
Diffstat (limited to 'nettle.texinfo')
-rw-r--r--nettle.texinfo14
1 files changed, 14 insertions, 0 deletions
diff --git a/nettle.texinfo b/nettle.texinfo
index e539dbe6..cbcad259 100644
--- a/nettle.texinfo
+++ b/nettle.texinfo
@@ -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