Commit 8675a35b authored by Niels Möller's avatar Niels Möller

* dsa.h (struct dsa_private_key): Don't include the public

information here.
* dsa.c (dsa_private_key_init, dsa_private_key_clear): Updated to
new struct dsa_private_key.

* dsa.h, dsa.c, dsa-sign.c, dsa-verify.c: New files.

Rev: src/nettle/dsa.c:1.2
parent d253a68d
...@@ -55,14 +55,12 @@ dsa_public_key_clear(struct dsa_public_key *key) ...@@ -55,14 +55,12 @@ dsa_public_key_clear(struct dsa_public_key *key)
void void
dsa_private_key_init(struct dsa_private_key *key) dsa_private_key_init(struct dsa_private_key *key)
{ {
dsa_public_key_init(&key->pub);
mpz_init(key->x); mpz_init(key->x);
} }
void void
dsa_private_key_clear(struct dsa_private_key *key) dsa_private_key_clear(struct dsa_private_key *key)
{ {
dsa_public_key_clear(&key->pub);
mpz_clear(key->x); mpz_clear(key->x);
} }
......
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