diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-27 13:14:28 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-27 13:14:28 +0200 |
| commit | 158bf81343054982800d44d507e8e50f2eeb6dd4 (patch) | |
| tree | 6c09867def3377854b08656a4d5d6df7553fc80b /scratchpad/scratchpad.c | |
| parent | 25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c (diff) | |
| download | cmix-158bf81343054982800d44d507e8e50f2eeb6dd4.tar.gz cmix-158bf81343054982800d44d507e8e50f2eeb6dd4.tar.bz2 cmix-158bf81343054982800d44d507e8e50f2eeb6dd4.zip | |
Added proper keyexchange for elgamal-gcrypt.
Diffstat (limited to 'scratchpad/scratchpad.c')
| -rw-r--r-- | scratchpad/scratchpad.c | 6 |
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); - +*/ } |
