aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/keymanagement.h
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-08-31 14:09:51 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-09-01 13:08:52 +0200
commit9d7701c370f06be663f2a485507d388ab5194ca8 (patch)
treeaea0b55017b7a6003dbd042cdb113ec6fb5ab2e9 /libcmix-crypto/keymanagement.h
parentd55e5c77d3cd2a1be150666e92e5b4f3b922f0fc (diff)
downloadcmix-9d7701c370f06be663f2a485507d388ab5194ca8.tar.gz
cmix-9d7701c370f06be663f2a485507d388ab5194ca8.tar.bz2
cmix-9d7701c370f06be663f2a485507d388ab5194ca8.zip
Added a CMake system to easily add and choose crypto implementations.
Diffstat (limited to 'libcmix-crypto/keymanagement.h')
-rw-r--r--libcmix-crypto/keymanagement.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/libcmix-crypto/keymanagement.h b/libcmix-crypto/keymanagement.h
index 1db0ce6..18b578a 100644
--- a/libcmix-crypto/keymanagement.h
+++ b/libcmix-crypto/keymanagement.h
@@ -1,13 +1,13 @@
#pragma once
-#include "curve25519.h"
-
-#include <stddef.h>
-
#ifdef __cplusplus
extern "C" {
#endif
+#include "keypair.h"
+
+#include <stddef.h>
+
typedef struct KeyPair(*CmixKeyPairCreator)();
typedef struct KeyPair(*CmixKeyPairLoader)(char*, char*);
@@ -16,13 +16,6 @@ struct CmixKeyManagementImpl {
CmixKeyPairLoader load_keypair;
};
-struct CmixKeyManagementImpl get_curve25519_key_management_implementation() {
- return (struct CmixKeyManagementImpl) {\
- &curve25519_create_keypair,
- NULL
- };\
-}
-
#ifdef __cplusplus
} // extern "C"
#endif