blob: 3cece7c1f22be43d308510b2fdbebdddae5e06c2 [file] [log] [blame]
Damien Miller33b13562000-04-04 14:38:59 +10001#ifndef DSA_H
2#define DSA_H
3
Damien Millereba71ba2000-04-29 23:57:08 +10004Key *dsa_key_from_blob(char *blob, int blen);
5int dsa_make_key_blob(Key *key, unsigned char **blobp, unsigned int *lenp);
Damien Miller33b13562000-04-04 14:38:59 +10006
7int
8dsa_sign(
9 Key *key,
10 unsigned char **sigp, int *lenp,
Damien Millereba71ba2000-04-29 23:57:08 +100011 unsigned char *data, int datalen);
Damien Miller33b13562000-04-04 14:38:59 +100012
13int
14dsa_verify(
15 Key *key,
16 unsigned char *signature, int signaturelen,
Damien Millereba71ba2000-04-29 23:57:08 +100017 unsigned char *data, int datalen);
18
19Key *
20dsa_generate_key(unsigned int bits);
Damien Miller33b13562000-04-04 14:38:59 +100021
22#endif