From bc4a07a0adc9e31af75576477fbed488c31edaa4 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 10 May 2006 07:32:34 +0000 Subject: - started to rebuild source layout --- src/libfreeswan/libcrypto/libtwofish/test_main.c | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/libfreeswan/libcrypto/libtwofish/test_main.c (limited to 'src/libfreeswan/libcrypto/libtwofish/test_main.c') diff --git a/src/libfreeswan/libcrypto/libtwofish/test_main.c b/src/libfreeswan/libcrypto/libtwofish/test_main.c new file mode 100644 index 000000000..1e8b0db56 --- /dev/null +++ b/src/libfreeswan/libcrypto/libtwofish/test_main.c @@ -0,0 +1,34 @@ +#include +#include +#include "twofish_cbc.h" +#define BLOCK_SIZE 16 +#define KEY_SIZE 128 /* bits */ +#define KEY "1234567890123456" +#define STR "hola guaso como estaisss ... 012" +#define STRSZ (sizeof(STR)-1) + +#define BLKLEN BLOCK_SIZE +#define CONTEXT_T twofish_context +static int pretty_print(const unsigned char *buf, int count) { + int i=0; + for (;i