26 #ifndef CRYPTOPP_DONNA_H 27 #define CRYPTOPP_DONNA_H 33 NAMESPACE_BEGIN(Donna)
56 int curve25519_mult(byte sharedKey[32],
const byte secretKey[32],
const byte othersKey[32]);
82 int ed25519_sign(
const byte* message,
size_t messageLength,
const byte secretKey[32],
const byte publicKey[32], byte signature[64]);
96 ed25519_sign_open(
const byte *message,
size_t messageLength,
const byte publicKey[32],
const byte signature[64]);
100 #ifndef CRYPTOPP_DOXYGEN_PROCESSING 109 #if defined(CRYPTOPP_WORD128_AVAILABLE) || \ 110 (defined(_MSC_VER) && defined(_M_X64)) || \ 111 (defined(__GNUC__) && (defined(__amd64__) || defined(__x86_64__))) 112 # define CRYPTOPP_CURVE25519_64BIT 1 114 # define CRYPTOPP_CURVE25519_32BIT 1 133 #if (CRYPTOPP_SSE2_INTRIN_AVAILABLE) && defined(_MSC_VER) 134 # define CRYPTOPP_CURVE25519_SSE2 1 137 #if (CRYPTOPP_CURVE25519_SSE2) 138 extern int curve25519_mult_SSE2(byte sharedKey[32],
const byte secretKey[32],
const byte othersKey[32]);
141 #endif // CRYPTOPP_DOXYGEN_PROCESSING 146 #endif // CRYPTOPP_DONNA_H Abstract base classes that provide a uniform interface to this library.
int ed25519_sign(const byte *message, size_t messageLength, const byte secretKey[32], const byte publicKey[32], byte signature[64])
Creates a signature on a message.
int curve25519_mult(byte publicKey[32], const byte secretKey[32])
Generate a public key.
int ed25519_sign_open(const byte *message, size_t messageLength, const byte publicKey[32], const byte signature[64])
Verifies a signature on a message.
Crypto++ library namespace.
int ed25519_publickey(byte publicKey[32], const byte secretKey[32])
Creates a public key from a secret key.