summaryrefslogtreecommitdiff
path: root/crypto/openssh/dsa.h
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-05-15 04:37:24 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-05-15 04:37:24 +0000
commitfe01acb84656c63baab77d17559fadf7dadcd712 (patch)
tree4b609a9da5734aaa0c40c468f6e21c1d29568b70 /crypto/openssh/dsa.h
parent6102159f98c6bf0f1b38f76422620bc6a0c95f6b (diff)
parenta04a10f8915401e0ac20dce0ade6c5b6e1bb13da (diff)
Notes
Diffstat (limited to 'crypto/openssh/dsa.h')
-rw-r--r--crypto/openssh/dsa.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/crypto/openssh/dsa.h b/crypto/openssh/dsa.h
new file mode 100644
index 000000000000..3cece7c1f22b
--- /dev/null
+++ b/crypto/openssh/dsa.h
@@ -0,0 +1,22 @@
+#ifndef DSA_H
+#define DSA_H
+
+Key *dsa_key_from_blob(char *blob, int blen);
+int dsa_make_key_blob(Key *key, unsigned char **blobp, unsigned int *lenp);
+
+int
+dsa_sign(
+ Key *key,
+ unsigned char **sigp, int *lenp,
+ unsigned char *data, int datalen);
+
+int
+dsa_verify(
+ Key *key,
+ unsigned char *signature, int signaturelen,
+ unsigned char *data, int datalen);
+
+Key *
+dsa_generate_key(unsigned int bits);
+
+#endif