summaryrefslogtreecommitdiff
path: root/dsa.h
diff options
context:
space:
mode:
Diffstat (limited to 'dsa.h')
-rw-r--r--dsa.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/dsa.h b/dsa.h
index 65e651d9b..3cece7c1f 100644
--- a/dsa.h
+++ b/dsa.h
@@ -1,20 +1,22 @@
1#ifndef DSA_H 1#ifndef DSA_H
2#define DSA_H 2#define DSA_H
3 3
4Key *dsa_serverkey_from_blob(char *serverhostkey, int serverhostkeylen); 4Key *dsa_key_from_blob(char *blob, int blen);
5Key *dsa_get_serverkey(char *filename); 5int dsa_make_key_blob(Key *key, unsigned char **blobp, unsigned int *lenp);
6int dsa_make_serverkey_blob(Key *key, unsigned char **blobp, unsigned int *lenp);
7 6
8int 7int
9dsa_sign( 8dsa_sign(
10 Key *key, 9 Key *key,
11 unsigned char **sigp, int *lenp, 10 unsigned char **sigp, int *lenp,
12 unsigned char *hash, int hlen); 11 unsigned char *data, int datalen);
13 12
14int 13int
15dsa_verify( 14dsa_verify(
16 Key *key, 15 Key *key,
17 unsigned char *signature, int signaturelen, 16 unsigned char *signature, int signaturelen,
18 unsigned char *hash, int hlen); 17 unsigned char *data, int datalen);
18
19Key *
20dsa_generate_key(unsigned int bits);
19 21
20#endif 22#endif