diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-04-26 20:56:31 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-04-26 20:56:31 +0000 |
commit | 37cb67acec9e6e06ee5741a04a6fc32a124506c7 (patch) | |
tree | dd607b413c9d9cf79da9058fe97f075d0cc7a20c /usr.bin/ssh/dsa.h | |
parent | 80bd16910dd37033c37a20a6606cac3416cb0795 (diff) |
add DSA pubkey auth and other SSH2 fixes. use ssh-keygen -[xX]
for trading keys with the real and the original SSH, directly from the
people who invented the SSH protocol.
Diffstat (limited to 'usr.bin/ssh/dsa.h')
-rw-r--r-- | usr.bin/ssh/dsa.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/ssh/dsa.h b/usr.bin/ssh/dsa.h index 65e651d9b91..3cece7c1f22 100644 --- a/usr.bin/ssh/dsa.h +++ b/usr.bin/ssh/dsa.h @@ -1,20 +1,22 @@ #ifndef DSA_H #define DSA_H -Key *dsa_serverkey_from_blob(char *serverhostkey, int serverhostkeylen); -Key *dsa_get_serverkey(char *filename); -int dsa_make_serverkey_blob(Key *key, unsigned char **blobp, unsigned int *lenp); +Key *dsa_key_from_blob(char *blob, int blen); +int dsa_make_key_blob(Key *key, unsigned char **blobp, unsigned int *lenp); int dsa_sign( Key *key, unsigned char **sigp, int *lenp, - unsigned char *hash, int hlen); + unsigned char *data, int datalen); int dsa_verify( Key *key, unsigned char *signature, int signaturelen, - unsigned char *hash, int hlen); + unsigned char *data, int datalen); + +Key * +dsa_generate_key(unsigned int bits); #endif |