summaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/curve25519/curve25519.h
blob: c75c355f85f7ed26e43aa06a4dd4760aad552071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef CURVE25519_H
#define CURVE25519_H

#include "config.h"

#ifdef  __cplusplus
extern "C" {
#endif

static const guchar curve25519_basepoint[32] = {9};

int curve25519 (guchar *mypublic, const guchar *secret, const guchar *basepoint);

/* Call for optimized implementation of scalarmult if needed */
int curve25519_base (guchar *mypublic, const guchar *secret);

const char *curve25519_load (void);

#ifdef  __cplusplus
}
#endif

#endif