aboutsummaryrefslogtreecommitdiff
path: root/scratchpad
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-10-27 13:14:28 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-10-27 13:14:28 +0200
commit158bf81343054982800d44d507e8e50f2eeb6dd4 (patch)
tree6c09867def3377854b08656a4d5d6df7553fc80b /scratchpad
parent25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c (diff)
downloadcmix-158bf81343054982800d44d507e8e50f2eeb6dd4.tar.gz
cmix-158bf81343054982800d44d507e8e50f2eeb6dd4.tar.bz2
cmix-158bf81343054982800d44d507e8e50f2eeb6dd4.zip
Added proper keyexchange for elgamal-gcrypt.
Diffstat (limited to 'scratchpad')
-rw-r--r--scratchpad/scratchpad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scratchpad/scratchpad.c b/scratchpad/scratchpad.c
index aadf3f0..1cb2e56 100644
--- a/scratchpad/scratchpad.c
+++ b/scratchpad/scratchpad.c
@@ -120,13 +120,13 @@ void cmix_buffer_scratch() {
}
void crypto_api_scratch() {
- struct Api api = get_implementation();
+/* struct Api api = get_implementation();
struct KeyPair pair1 = api.create_key_pair();
struct KeyPair pair2 = api.create_key_pair();
struct SharedKey sk1 = api.derive_shared_key(pair1, pair2.pub, false);
- struct SharedKey sk2 = api.derive_shared_key(pair2, pair1.pub, true);
+ sstruct SharedKey sk2 = api.derive_shared_key(pair2, pair1.pub, true);
char* buffer1;
size_t len1;
@@ -147,5 +147,5 @@ void crypto_api_scratch() {
api.free_shared_key(&sk1);
api.free_shared_key(&sk2);
-
+*/
}