diff options
author | Niels Möller <nisse@lysator.liu.se> | 2002-01-14 15:41:52 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2002-01-14 15:41:52 +0100 |
commit | 42ab739646d11788640aabfbd8e0a85751c2cda0 (patch) | |
tree | 8f16d1c04f4593bfe8c6f8c2e6bc0acf6c3f2d47 | |
parent | 87c0beafabcbda9e2cd1956a7fe09161d1797e37 (diff) | |
download | nettle-42ab739646d11788640aabfbd8e0a85751c2cda0.tar.gz |
* testsuite/testutils.h (LDATA): Moved this macro here,...
* 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
-rw-r--r-- | testsuite/rsa-test.c | 2 | ||||
-rw-r--r-- | testsuite/testutils.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/rsa-test.c b/testsuite/rsa-test.c index 3a24e2b4..3062fd99 100644 --- a/testsuite/rsa-test.c +++ b/testsuite/rsa-test.c @@ -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); \ diff --git a/testsuite/testutils.h b/testsuite/testutils.h index ff51d215..75981152 100644 --- a/testsuite/testutils.h +++ b/testsuite/testutils.h @@ -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() |