Be tolerant in ECDSA-violating signatures.
[gnutls.git] / lib / abstract_int.h
blob7a42b09dbac05cced77bf07c16b1c7e772e0f9a3
1 /*
2 * Copyright (C) 2010-2012 Free Software Foundation, Inc.
4 * Author: Nikos Mavrogiannopoulos
6 * This file is part of GnuTLS.
8 * The GnuTLS is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 3 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>
23 #ifndef _ABSTRACT_INT_H
24 # define _ABSTRACT_INT_H
26 #include <gnutls/abstract.h>
28 int _gnutls_privkey_get_public_mpis (gnutls_privkey_t key,
29 gnutls_pk_params_st*);
31 int pubkey_to_bits(gnutls_pk_algorithm_t pk, gnutls_pk_params_st* params);
32 int _gnutls_pubkey_compatible_with_sig(gnutls_session_t, gnutls_pubkey_t pubkey,
33 gnutls_protocol_t ver, gnutls_sign_algorithm_t sign);
34 int _gnutls_pubkey_is_over_rsa_512(gnutls_pubkey_t pubkey);
35 int
36 _gnutls_pubkey_get_mpis (gnutls_pubkey_t key,
37 gnutls_pk_params_st * params);
39 int
40 pubkey_verify_hashed_data (gnutls_pk_algorithm_t pk,
41 gnutls_digest_algorithm_t hash_algo,
42 const gnutls_datum_t * hash,
43 const gnutls_datum_t * signature,
44 gnutls_pk_params_st * issuer_params);
46 int pubkey_verify_data (gnutls_pk_algorithm_t pk,
47 gnutls_digest_algorithm_t algo,
48 const gnutls_datum_t * data,
49 const gnutls_datum_t * signature,
50 gnutls_pk_params_st * issuer_params);
54 gnutls_digest_algorithm_t _gnutls_dsa_q_to_hash (gnutls_pk_algorithm_t algo,
55 const gnutls_pk_params_st* params, unsigned int* hash_len);
57 #endif