From a4a912873058e50060561c21e965b4fec1d9b08b Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 28 Nov 2016 15:48:59 +0100 Subject: Cleans up and documents the whole cmix protocol. --- scratchpad/scratchpad.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'scratchpad/scratchpad.c') diff --git a/scratchpad/scratchpad.c b/scratchpad/scratchpad.c index 49a484f..4e7f007 100644 --- a/scratchpad/scratchpad.c +++ b/scratchpad/scratchpad.c @@ -1,6 +1,5 @@ #include "cmix.h" -#include "message.h" #include "api.h" @@ -10,7 +9,6 @@ #include #include -void cmix_buffer_scratch(); void crypto_api_scratch(); void gcrypt_scratch(); @@ -123,24 +121,6 @@ void gcrypt_scratch() { gcry_sexp_release(plain_sexpr); } -void cmix_buffer_scratch() { - struct CmixBufferImpl buffer_impl = get_cmix_Curve25519_buffer_implementation(); - char* buffer = buffer_impl.allocate_cmix_buffer(3); - - int message_size = buffer_impl.message_length(); - - for(int i=0; i < 3; i++) { - buffer[i*message_size] = 'h'; - } - - for(int i=0; i < 3; i++) { - putc(buffer[i*message_size], stdout); - putc('\n', stdout); - } - - buffer_impl.deallocate_cmix_buffer(buffer); -} - void crypto_api_scratch() { /* struct Api api = get_implementation(); -- cgit v1.2.3-70-g09d2