diff options
author | 2000-04-03 20:06:14 +0000 | |
---|---|---|
committer | 2000-04-03 20:06:14 +0000 | |
commit | c69e6c47d102b53013f60a07fb8ee6bd16c69fad (patch) | |
tree | a063190457b2b1592bd06554a7718393d77fcbb9 /usr.bin/ssh/dsa.h | |
parent | sync (diff) | |
download | wireguard-openbsd-c69e6c47d102b53013f60a07fb8ee6bd16c69fad.tar.xz wireguard-openbsd-c69e6c47d102b53013f60a07fb8ee6bd16c69fad.zip |
DSA, keyexchange, algorithm agreement for ssh2
Diffstat (limited to 'usr.bin/ssh/dsa.h')
-rw-r--r-- | usr.bin/ssh/dsa.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr.bin/ssh/dsa.h b/usr.bin/ssh/dsa.h new file mode 100644 index 00000000000..65e651d9b91 --- /dev/null +++ b/usr.bin/ssh/dsa.h @@ -0,0 +1,20 @@ +#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); + +int +dsa_sign( + Key *key, + unsigned char **sigp, int *lenp, + unsigned char *hash, int hlen); + +int +dsa_verify( + Key *key, + unsigned char *signature, int signaturelen, + unsigned char *hash, int hlen); + +#endif |