#pragma once #include "curve25519.h" #include #ifdef __cplusplus extern "C" { #endif typedef struct KeyPair(*CmixKeyPairCreator)(); typedef struct KeyPair(*CmixKeyPairLoader)(char*, char*); struct CmixKeyManagementImpl { CmixKeyPairCreator create_new_keypair; CmixKeyPairLoader load_keypair; }; struct CmixKeyManagementImpl get_curve25519_key_management_implementation() { return (struct CmixKeyManagementImpl) {\ &curve25519_create_keypair, NULL };\ } #ifdef __cplusplus } // extern "C" #endif