summaryrefslogtreecommitdiff
path: root/dsa.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2002-10-09 21:27:56 +0200
committerNiels Möller <nisse@lysator.liu.se>2002-10-09 21:27:56 +0200
commitd253a68d19e072551cb5fc9a97e379387396055c (patch)
tree34e1db63518687ba3704760095940526709f7c8b /dsa.h
parent2e8d8764c62d73344d01c1c4241ca142c97d1338 (diff)
downloadnettle-d253a68d19e072551cb5fc9a97e379387396055c.tar.gz
* dsa.h (struct dsa_private_key): Don't include the public
information here. Rev: src/nettle/dsa.h:1.2
Diffstat (limited to 'dsa.h')
-rw-r--r--dsa.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/dsa.h b/dsa.h
index 4c60cb03..22fecb96 100644
--- a/dsa.h
+++ b/dsa.h
@@ -52,9 +52,8 @@ struct dsa_public_key
struct dsa_private_key
{
- /* Unlike an rsa public key, all the public information is needed,
- * in addition to the private information. */
- struct dsa_public_key pub;
+ /* Unlike an rsa public key, private key operations will need both
+ * the private and the public information. */
mpz_t x;
};
@@ -114,14 +113,15 @@ void
_dsa_hash(mpz_t x, struct sha1_ctx *hash);
void
-dsa_sign(struct dsa_private_key *key,
+dsa_sign(const struct dsa_public_key *pub,
+ const struct dsa_private_key *key,
void *random_ctx, nettle_random_func random,
struct sha1_ctx *hash,
struct dsa_signature *signature);
int
-dsa_verify(struct dsa_public_key *key,
+dsa_verify(const struct dsa_public_key *key,
struct sha1_ctx *hash,
const struct dsa_signature *signature);