diff options
Diffstat (limited to 'dsa.h')
-rw-r--r-- | dsa.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,20 +1,22 @@ | |||
1 | #ifndef DSA_H | 1 | #ifndef DSA_H |
2 | #define DSA_H | 2 | #define DSA_H |
3 | 3 | ||
4 | Key *dsa_serverkey_from_blob(char *serverhostkey, int serverhostkeylen); | 4 | Key *dsa_key_from_blob(char *blob, int blen); |
5 | Key *dsa_get_serverkey(char *filename); | 5 | int dsa_make_key_blob(Key *key, unsigned char **blobp, unsigned int *lenp); |
6 | int dsa_make_serverkey_blob(Key *key, unsigned char **blobp, unsigned int *lenp); | ||
7 | 6 | ||
8 | int | 7 | int |
9 | dsa_sign( | 8 | dsa_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 | ||
14 | int | 13 | int |
15 | dsa_verify( | 14 | dsa_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 | |||
19 | Key * | ||
20 | dsa_generate_key(unsigned int bits); | ||
19 | 21 | ||
20 | #endif | 22 | #endif |