aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/elgamal/null/null_elgamal.c
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-10-01 10:02:15 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-10-01 10:02:15 +0200
commit7e30f35cfc42ac3983dfa281d554df9aa9485a99 (patch)
tree5b11a3e14a2a60cdb80db1fca1d0d3f850f97bac /libcmix-crypto/elgamal/null/null_elgamal.c
parent37effc3e136c73afd4d6ba37d23a91766795d0f7 (diff)
downloadcmix-7e30f35cfc42ac3983dfa281d554df9aa9485a99.tar.gz
cmix-7e30f35cfc42ac3983dfa281d554df9aa9485a99.tar.bz2
cmix-7e30f35cfc42ac3983dfa281d554df9aa9485a99.zip
Fixes the build for mxe-cross-builds, and if building shared libraries.
Diffstat (limited to 'libcmix-crypto/elgamal/null/null_elgamal.c')
-rw-r--r--libcmix-crypto/elgamal/null/null_elgamal.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/libcmix-crypto/elgamal/null/null_elgamal.c b/libcmix-crypto/elgamal/null/null_elgamal.c
index e69de29..ef98912 100644
--- a/libcmix-crypto/elgamal/null/null_elgamal.c
+++ b/libcmix-crypto/elgamal/null/null_elgamal.c
@@ -0,0 +1,25 @@
+
+#include "api.h"
+
+#include <stddef.h>
+#include <stdbool.h>
+
+void elgamal_keypair_deleter(struct KeyPair p) {}
+
+struct KeyPair elgamal_create_keypair() {
+ return (struct KeyPair){
+ NULL,
+ NULL,
+ 0,
+ 0
+ };
+}
+
+void elgamal_shared_key_deleter(struct SharedKey s) {}
+
+struct SharedKey elgamal_derive_shared_key(struct KeyPair pair, unsigned char* pub_key, bool swap_pub_order) {
+ return (struct SharedKey){
+ NULL,
+ 0
+ };
+}