Commit 42ab7396 authored by Niels Möller's avatar Niels Möller

* 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
parent 87c0beaf
......@@ -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); \
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment