summaryrefslogtreecommitdiff
path: root/dsa.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2003-01-23 23:42:57 +0100
committerNiels Möller <nisse@lysator.liu.se>2003-01-23 23:42:57 +0100
commited7977cb6ed129b6a839017d6cf7f5ee63d226af (patch)
tree58fe1ea33921ac0ee500d37c954d4f84d31faf4d /dsa.h
parent5e6440f059550340b24509a20ac6e35b3215b1f5 (diff)
downloadnettle-ed7977cb6ed129b6a839017d6cf7f5ee63d226af.tar.gz
* dsa.c (_dsa_hash): Deleted function.
Rev: src/nettle/dsa.c:1.4 Rev: src/nettle/dsa.h:1.5
Diffstat (limited to 'dsa.h')
-rw-r--r--dsa.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/dsa.h b/dsa.h
index 5416b77f..beb15dda 100644
--- a/dsa.h
+++ b/dsa.h
@@ -113,9 +113,6 @@ dsa_signature_clear(struct dsa_signature *signature);
void
-_dsa_hash(mpz_t x, struct sha1_ctx *hash);
-
-void
dsa_sign(const struct dsa_public_key *pub,
const struct dsa_private_key *key,
void *random_ctx, nettle_random_func random,
@@ -128,6 +125,18 @@ dsa_verify(const struct dsa_public_key *key,
struct sha1_ctx *hash,
const struct dsa_signature *signature);
+void
+dsa_sign_digest(const struct dsa_public_key *pub,
+ const struct dsa_private_key *key,
+ void *random_ctx, nettle_random_func random,
+ const uint8_t *digest,
+ struct dsa_signature *signature);
+
+int
+dsa_verify_digest(const struct dsa_public_key *key,
+ const uint8_t *digest,
+ const struct dsa_signature *signature);
+
/* Key generation */
int