summaryrefslogtreecommitdiffstats
path: root/dsa.h
blob: 3cece7c1f22be43d308510b2fdbebdddae5e06c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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