Damien Miller | 33b1356 | 2000-04-04 14:38:59 +1000 | [diff] [blame] | 1 | #ifndef DSA_H |
| 2 | #define DSA_H |
| 3 | |
| 4 | Key *dsa_serverkey_from_blob(char *serverhostkey, int serverhostkeylen); |
| 5 | Key *dsa_get_serverkey(char *filename); |
| 6 | int dsa_make_serverkey_blob(Key *key, unsigned char **blobp, unsigned int *lenp); |
| 7 | |
| 8 | int |
| 9 | dsa_sign( |
| 10 | Key *key, |
| 11 | unsigned char **sigp, int *lenp, |
| 12 | unsigned char *hash, int hlen); |
| 13 | |
| 14 | int |
| 15 | dsa_verify( |
| 16 | Key *key, |
| 17 | unsigned char *signature, int signaturelen, |
| 18 | unsigned char *hash, int hlen); |
| 19 | |
| 20 | #endif |