aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/curve25519/curve25519-donna-c64.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcryptobox/curve25519/curve25519-donna-c64.c')
-rw-r--r--src/libcryptobox/curve25519/curve25519-donna-c64.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcryptobox/curve25519/curve25519-donna-c64.c b/src/libcryptobox/curve25519/curve25519-donna-c64.c
index 2d5b19b18..c83b27ecb 100644
--- a/src/libcryptobox/curve25519/curve25519-donna-c64.c
+++ b/src/libcryptobox/curve25519/curve25519-donna-c64.c
@@ -24,6 +24,7 @@
#include <string.h>
#include <stdint.h>
+#include "curve25519.h"
typedef uint8_t u8;
typedef uint64_t limb;
@@ -495,3 +496,10 @@ int scalarmult_donna (u8 *mypublic, const u8 *secret, const u8 *basepoint)
return 0;
}
+
+int
+scalarmult_base_donna (u8 *mypublic, const u8 *secret)
+{
+ return scalarmult_donna (mypublic, secret,
+ curve25519_basepoint);
+}