[BACK]Return to dsa.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

File: [local] / src / usr.bin / ssh / Attic / dsa.h (download)

Revision 1.2, Wed Apr 26 20:56:29 2000 UTC (24 years, 1 month ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE
Branch point for: OPENBSD_2_7
Changes since 1.1: +7 -5 lines

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.

#ifndef DSA_H
#define DSA_H

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 *data, int datalen);

int
dsa_verify(
    Key *key,
    unsigned char *signature, int signaturelen,
    unsigned char *data, int datalen);

Key *
dsa_generate_key(unsigned int bits);

#endif