diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-03-26 21:08:41 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-03-26 21:08:41 +0100 |
commit | 39ea0d27ca08ce95877b58347f2bb4a3f473656e (patch) | |
tree | 3dbaf9f7f074d209cc24a6873a779091f93eaeba /dsa-sha1-verify.c | |
parent | 5c232aa8d0686c4ba11a37b8dc620400da983e47 (diff) | |
download | nettle-39ea0d27ca08ce95877b58347f2bb4a3f473656e.tar.gz |
New struct dsa_params. Use for dsa_sign and dsa_verify. Updated users.
Diffstat (limited to 'dsa-sha1-verify.c')
-rw-r--r-- | dsa-sha1-verify.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dsa-sha1-verify.c b/dsa-sha1-verify.c index 76de5820..4cc2931a 100644 --- a/dsa-sha1-verify.c +++ b/dsa-sha1-verify.c @@ -27,8 +27,6 @@ # include "config.h" #endif -#include <stdlib.h> - #include "dsa.h" int @@ -36,7 +34,8 @@ dsa_sha1_verify_digest(const struct dsa_public_key *key, const uint8_t *digest, const struct dsa_signature *signature) { - return dsa_verify(key, SHA1_DIGEST_SIZE, digest, signature); + return dsa_verify((const struct dsa_params *) key, key->y, + SHA1_DIGEST_SIZE, digest, signature); } int @@ -47,5 +46,6 @@ dsa_sha1_verify(const struct dsa_public_key *key, uint8_t digest[SHA1_DIGEST_SIZE]; sha1_digest(hash, sizeof(digest), digest); - return dsa_verify(key, sizeof(digest), digest, signature); + return dsa_verify((const struct dsa_params *) key, key->y, + sizeof(digest), digest, signature); } |