• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is dual licensed under the terms of the Apache License, Version
2# 2.0, and the BSD License. See the LICENSE file in the root of this repository
3# for complete details.
4
5from __future__ import absolute_import, division, print_function
6
7INCLUDES = """
8#include <openssl/dsa.h>
9"""
10
11TYPES = """
12typedef ... DSA;
13"""
14
15FUNCTIONS = """
16int DSA_generate_key(DSA *);
17DSA *DSA_new(void);
18void DSA_free(DSA *);
19DSA *DSAparams_dup(DSA *);
20int DSA_size(const DSA *);
21int DSA_sign(int, const unsigned char *, int, unsigned char *, unsigned int *,
22             DSA *);
23int DSA_verify(int, const unsigned char *, int, const unsigned char *, int,
24               DSA *);
25
26/* added in 1.1.0 to access the opaque struct */
27void DSA_get0_pqg(const DSA *, const BIGNUM **, const BIGNUM **,
28                  const BIGNUM **);
29int DSA_set0_pqg(DSA *, BIGNUM *, BIGNUM *, BIGNUM *);
30void DSA_get0_key(const DSA *, const BIGNUM **, const BIGNUM **);
31int DSA_set0_key(DSA *, BIGNUM *, BIGNUM *);
32int DSA_generate_parameters_ex(DSA *, int, unsigned char *, int,
33                               int *, unsigned long *, BN_GENCB *);
34"""
35
36CUSTOMIZATIONS = """
37"""
38