forked from CODeRUS/libcurve25519
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcurve.h
More file actions
18 lines (14 loc) · 726 Bytes
/
curve.h
File metadata and controls
18 lines (14 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef CURVE_DLL_H
#define CURVE_DLL_H
#include "curve_global.h"
class LIBCURVE_DLL Curve25519
{
public:
Curve25519();
static void generatePrivateKey(char *random);
static void generatePublicKey(const char *privatekey, char *mypublic);
static void calculateAgreement(const char *myprivate, const char *theirpublic, char *shared_key);
static void calculateSignature(const unsigned char *privatekey, const unsigned char *message, const unsigned long messagelen, const unsigned char *random, unsigned char *signature);
static bool verifySignature(const unsigned char *publickey, const unsigned char *message, const unsigned long messagelen, const unsigned char *signature);
};
#endif // CURVE_DLL_H