]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* testsuite/testutils.h (LDATA): Moved this macro here,...
authorNiels Möller <nisse@lysator.liu.se>
Mon, 14 Jan 2002 14:41:52 +0000 (15:41 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 14 Jan 2002 14:41:52 +0000 (15:41 +0100)
* testsuite/rsa-test.c: ... from here.

* testsuite/rsa-test.c: Also test a 777-bit key.

Rev: src/nettle/testsuite/rsa-test.c:1.3
Rev: src/nettle/testsuite/testutils.h:1.5

testsuite/rsa-test.c
testsuite/testutils.h

index 3a24e2b44c8095e329729bc045da8df65d03a69d..3062fd991a6f0e6f4ed90f4e22d69a45208d3e98 100644 (file)
@@ -10,8 +10,6 @@
 # include "rsa.h"
 #endif
 
-#define LDATA(s) strlen(s), s
-
 #define SIGN(key, hash, msg, signature) do {   \
   hash##_update(&hash, LDATA(msg));            \
   rsa_##hash##_sign(key, &hash, signature);    \
index ff51d21531db19cf6cc3e08c687ad33d0b36c7dd..759811521a4f2db3a18d260b5b66581d63a0f8d5 100644 (file)
@@ -53,6 +53,8 @@ test_hash(const struct nettle_hash *hash,
 #define H(x) decode_hex_dup(x)
 #define HL(x) decode_hex_length(x), decode_hex_dup(x)
 
+#define LDATA(x) strlen(x), x
+
 #define MEMEQ(length, a, b) (!memcmp((a), (b), (length)))
 
 #define FAIL() abort()