57QSC_CPLUSPLUS_ENABLED_START
105#define QSC_EDDH_PRIVATEKEY_SIZE 32ULL
111#define QSC_EDDH_PUBLICKEY_SIZE 32ULL
117#define QSC_EDDH_SHAREDSECRET_SIZE 32ULL
123#define QSC_EDDH_SEED_SIZE 32ULL
129#define QSC_EDDH_ALGNAME "ECDH"
141QSC_EXPORT_API bool qsc_eddh_key_exchange(uint8_t* secret,
const uint8_t* privatekey,
const uint8_t* publickey);
153QSC_EXPORT_API bool qsc_eddh_generate_keypair(uint8_t* publickey, uint8_t* privatekey,
bool (*rng_generate)(uint8_t*,
size_t));
170QSC_EXPORT_API void qsc_eddh_public_from_private(uint8_t* publickey,
const uint8_t* privatekey);
182QSC_EXPORT_API bool qsc_eddh_generate_seeded_keypair(uint8_t* publickey, uint8_t* privatekey,
const uint8_t* seed);
184QSC_CPLUSPLUS_ENABLED_END
Contains common definitions for the Quantum Secure Cryptographic (QSC) library.
#define QSC_EXPORT_API
API export macro for Microsoft compilers when importing from a DLL.
Definition qsccommon.h:605