summaryrefslogtreecommitdiff
path: root/curve25519.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-08-06 22:08:32 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-08-06 22:08:32 +0200
commit28b7678ef6196efb08230c25e604c93d66f91bad (patch)
treeafc5c4ffbcba1e496e97c5ba3c4b1a495fa88bc9 /curve25519.h
parent2ac6d737f6100d3694ec0a0ad5c93641fcc6795d (diff)
downloadnettle-28b7678ef6196efb08230c25e604c93d66f91bad.tar.gz
New function curve25519_base.
Diffstat (limited to 'curve25519.h')
-rw-r--r--curve25519.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/curve25519.h b/curve25519.h
new file mode 100644
index 00000000..66a5c80f
--- /dev/null
+++ b/curve25519.h
@@ -0,0 +1,49 @@
+/* curve25519.h
+
+ Copyright (C) 2014 Niels Möller
+
+ This file is part of GNU Nettle.
+
+ GNU Nettle is free software: you can redistribute it and/or
+ modify it under the terms of either:
+
+ * the GNU Lesser General Public License as published by the Free
+ Software Foundation; either version 3 of the License, or (at your
+ option) any later version.
+
+ or
+
+ * the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at your
+ option) any later version.
+
+ or both in parallel, as here.
+
+ GNU Nettle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received copies of the GNU General Public License and
+ the GNU Lesser General Public License along with this program. If
+ not, see http://www.gnu.org/licenses/.
+*/
+
+#ifndef NETTLE_CURVE25519_H
+#define NETTLE_CURVE25519_H
+
+#include "nettle-types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Name mangling */
+#define curve25519_base nettle_curve25519_base
+
+#define CURVE25519_SIZE 32
+
+void
+curve25519_base (uint8_t *q, const uint8_t *n);
+
+#endif /* NETTLE_CURVE25519_H */