Export new ABIs. Doc fixes for new APIs.
[gnutls.git] / lib / gnutls_sig.h
bloba19f2366a3686941ab03a5a9abce2d277703676d
1 /*
2 * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2010 Free Software
3 * Foundation, Inc.
5 * Author: Nikos Mavrogiannopoulos
7 * This file is part of GNUTLS.
9 * The GNUTLS library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 2.1 of
12 * the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22 * USA
26 #ifndef GNUTLS_SIG_H
27 # define GNUTLS_SIG_H
29 int _gnutls_handshake_sign_cert_vrfy (gnutls_session_t session,
30 gnutls_cert * cert,
31 gnutls_privkey * pkey,
32 gnutls_datum_t * signature);
34 int _gnutls_handshake_sign_data (gnutls_session_t session,
35 gnutls_cert * cert,
36 gnutls_privkey * pkey,
37 gnutls_datum_t * params,
38 gnutls_datum_t * signature,
39 gnutls_sign_algorithm_t * algo);
41 int _gnutls_handshake_verify_cert_vrfy (gnutls_session_t session,
42 gnutls_cert * cert, gnutls_datum_t * signature,
43 gnutls_sign_algorithm_t);
45 int _gnutls_handshake_verify_data (gnutls_session_t session,
46 gnutls_cert * cert,
47 const gnutls_datum_t * params,
48 gnutls_datum_t * signature,
49 gnutls_sign_algorithm_t algo);
51 int _gnutls_sign (gnutls_pk_algorithm_t algo,
52 bigint_t * params, int params_size,
53 const gnutls_datum_t * data, gnutls_datum_t * signature);
55 #endif