From e8f65c221bf21e41d4620590a86a5645f53738c3 Mon Sep 17 00:00:00 2001 From: GGSuchao <1500062807@pku.edu.cn> Date: Thu, 20 Apr 2017 09:42:33 +0800 Subject: [PATCH] Delete test.c --- test.c | 108 --------------------------------------------------------- 1 file changed, 108 deletions(-) delete mode 100644 test.c diff --git a/test.c b/test.c deleted file mode 100644 index d06d678f..00000000 --- a/test.c +++ /dev/null @@ -1,108 +0,0 @@ -// test unit for serpent-256 -// Odzhan - -#include -#include -#include -#include -#include - -#include "serpent.h" - -char *plain[] = -{ "3DA46FFA6F4D6F30CD258333E5A61369" }; - -char *keys[] = -{ "000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F" -}; - -char *cipher[] = -{ "00112233445566778899AABBCCDDEEFF" }; - -size_t hex2bin(void *bin, char hex[]) { - size_t len, i; - int x; - uint8_t *p = (uint8_t*)bin; - - len = strlen(hex); - - if ((len & 1) != 0) { - return 0; - } - - for (i = 0; i