summaryrefslogtreecommitdiff
path: root/testsuite/des3-test.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-09-16 23:29:08 +0200
committerNiels Möller <nisse@lysator.liu.se>2012-09-16 23:29:08 +0200
commit75288e447e2a659b7c4df915d81c426bda4435c7 (patch)
tree6790f104bd9b26f4ecdb3e7fdfb7b89a2a6c159f /testsuite/des3-test.c
parent728a20eed7ec34e917d3a992b7777ceb9cee8404 (diff)
downloadnettle-75288e447e2a659b7c4df915d81c426bda4435c7.tar.gz
Testsuite overhaul, including proper deallocation of storage.
Diffstat (limited to 'testsuite/des3-test.c')
-rw-r--r--testsuite/des3-test.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/testsuite/des3-test.c b/testsuite/des3-test.c
index 678a235e..f0437ff4 100644
--- a/testsuite/des3-test.c
+++ b/testsuite/des3-test.c
@@ -2,7 +2,7 @@
#include "nettle-internal.h"
#include "des.h"
-int
+void
test_main(void)
{
/* Intermediate values:
@@ -11,11 +11,9 @@ test_main(void)
*/
test_cipher(&nettle_des3,
- HL("3e 0b 10 b0 5d 49 c2 54"
- "6b 46 e0 75 8a 91 61 85"
- "cb 04 07 d3 20 16 cb a2"),
- DES_BLOCK_SIZE, "Now is t",
- H("0a 5d b5 2d 85 74 d1 c9"));
-
- SUCCESS();
+ SHEX("3e 0b 10 b0 5d 49 c2 54"
+ "6b 46 e0 75 8a 91 61 85"
+ "cb 04 07 d3 20 16 cb a2"),
+ SDATA("Now is t"),
+ SHEX("0a 5d b5 2d 85 74 d1 c9"));
}