aboutsummaryrefslogtreecommitdiff
path: root/scratchpad/scratchpad.c
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-11-28 15:48:59 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-11-28 15:48:59 +0100
commita4a912873058e50060561c21e965b4fec1d9b08b (patch)
tree564432cf3f760483a9acfa64f109f5f42be469c1 /scratchpad/scratchpad.c
parentb8d2fe28870d1f54aad1fd9fce04e57caa85ba0b (diff)
downloadcmix-a4a912873058e50060561c21e965b4fec1d9b08b.tar.gz
cmix-a4a912873058e50060561c21e965b4fec1d9b08b.tar.bz2
cmix-a4a912873058e50060561c21e965b4fec1d9b08b.zip
Cleans up and documents the whole cmix protocol.
Diffstat (limited to 'scratchpad/scratchpad.c')
-rw-r--r--scratchpad/scratchpad.c20
1 files changed, 0 insertions, 20 deletions
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 <string.h>
#include <stddef.h>
-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();