Damien Miller | 33b1356 | 2000-04-04 14:38:59 +1000 | [diff] [blame] | 1 | #ifndef DSA_H |
| 2 | #define DSA_H |
| 3 | |
Damien Miller | eba71ba | 2000-04-29 23:57:08 +1000 | [diff] [blame^] | 4 | Key *dsa_key_from_blob(char *blob, int blen); |
| 5 | int dsa_make_key_blob(Key *key, unsigned char **blobp, unsigned int *lenp); |
Damien Miller | 33b1356 | 2000-04-04 14:38:59 +1000 | [diff] [blame] | 6 | |
| 7 | int |
| 8 | dsa_sign( |
| 9 | Key *key, |
| 10 | unsigned char **sigp, int *lenp, |
Damien Miller | eba71ba | 2000-04-29 23:57:08 +1000 | [diff] [blame^] | 11 | unsigned char *data, int datalen); |
Damien Miller | 33b1356 | 2000-04-04 14:38:59 +1000 | [diff] [blame] | 12 | |
| 13 | int |
| 14 | dsa_verify( |
| 15 | Key *key, |
| 16 | unsigned char *signature, int signaturelen, |
Damien Miller | eba71ba | 2000-04-29 23:57:08 +1000 | [diff] [blame^] | 17 | unsigned char *data, int datalen); |
| 18 | |
| 19 | Key * |
| 20 | dsa_generate_key(unsigned int bits); |
Damien Miller | 33b1356 | 2000-04-04 14:38:59 +1000 | [diff] [blame] | 21 | |
| 22 | #endif |