Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
curve25519.h
Go to the documentation of this file.
1 /*===-- misc/curve25519.h -------------------------------*- PUBLIC-*- H -*-===*/
9 /*===----------------------------------------------------------------------===*/
10 
11 #ifndef ORDO_CURVE25519_H
12 #define ORDO_CURVE25519_H
13 
15 #include "ordo/common/interface.h"
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 /*===----------------------------------------------------------------------===*/
23 
24 #define curve25519_gen ordo_curve25519_gen
25 #define curve25519_pub ordo_curve25519_pub
26 #define curve25519_ecdh ordo_curve25519_ecdh
27 
28 /*===----------------------------------------------------------------------===*/
29 
40 ORDO_PUBLIC
41 int curve25519_gen(void *priv);
42 
54 ORDO_PUBLIC
55 void curve25519_pub(void *pub, const void *priv);
56 
69 ORDO_PUBLIC
70 void curve25519_ecdh(void *shared, const void *priv, const void *other);
71 
72 /*===----------------------------------------------------------------------===*/
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif
ORDO_PUBLIC void curve25519_pub(void *pub, const void *priv)
Definition: curve25519.c:67
ORDO_PUBLIC int curve25519_gen(void *priv)
Definition: curve25519.c:57
ORDO_PUBLIC void curve25519_ecdh(void *shared, const void *priv, const void *other)
Definition: curve25519.c:73