Commit 3f4f7df3 authored by Niels Möller's avatar Niels Möller
Browse files

(DSA_VERIFY): Updated for dsa_sha1_verify rename.

(test_dsa): Check return value from dsa_sha1_sign.

Rev: nettle/testsuite/testutils.c:1.6
parent ed5015c3
......@@ -803,7 +803,7 @@ test_rsa_key(struct rsa_public_key *pub,
#define DSA_VERIFY(key, hash, msg, signature) ( \
sha1_update(hash, LDATA(msg)), \
dsa_verify(key, hash, signature) \
dsa_sha1_verify(key, hash, signature) \
......@@ -819,9 +819,9 @@ test_dsa(const struct dsa_public_key *pub,
knuth_lfib_init(&lfib, 1111);
sha1_update(&sha1, LDATA("The magic words are squeamish ossifrage"));
dsa_sign(pub, key,
&lfib, (nettle_random_func *) knuth_lfib_random,
&sha1, &signature);
ASSERT (dsa_sha1_sign(pub, key,
&lfib, (nettle_random_func *) knuth_lfib_random,
&sha1, &signature));
if (verbose)
Supports Markdown
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