Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcus Hoffmann
nettle
Commits
0f6b2ce6
Commit
0f6b2ce6
authored
Sep 29, 2002
by
Niels Möller
Browse files
(MEMEQH): New macro.
Rev: src/nettle/testsuite/testutils.h:1.10
parent
eef954c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/testutils.h
View file @
0f6b2ce6
...
...
@@ -77,6 +77,11 @@ void
test_rsa_sha1
(
struct
rsa_public_key
*
pub
,
struct
rsa_private_key
*
key
,
mpz_t
expected
);
void
test_rsa_key
(
struct
rsa_public_key
*
pub
,
struct
rsa_private_key
*
key
);
#endif
/* HAVE_LIBGMP */
#define H2(d, s) decode_hex((d), (s))
...
...
@@ -86,6 +91,9 @@ test_rsa_sha1(struct rsa_public_key *pub,
#define LDATA(x) strlen(x), x
#define MEMEQ(length, a, b) (!memcmp((a), (b), (length)))
#define MEMEQH(length, a, b) \
((length) == decode_hex_length((b)) \
&& !memcmp((a), decode_hex_dup((b)), (length)))
#define FAIL() abort()
#define SKIP() exit(77)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment