2 * Copyright (C) 2011-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 AUTH_ECDH_COMMON
24 #define AUTH_ECDH_COMMON
26 #include <gnutls_auth.h>
29 _gnutls_gen_ecdh_common_client_kx (gnutls_session_t session
,
30 gnutls_buffer_st
* data
);
33 _gnutls_gen_ecdh_common_client_kx_int (gnutls_session_t session
,
34 gnutls_buffer_st
* data
,
35 gnutls_datum_t
* psk_key
);
38 _gnutls_proc_ecdh_common_client_kx (gnutls_session_t session
,
39 uint8_t * data
, size_t _data_size
,
40 gnutls_ecc_curve_t curve
,
41 gnutls_datum_t
*psk_key
);
43 int _gnutls_ecdh_common_print_server_kx (gnutls_session_t
, gnutls_buffer_st
* data
,
44 gnutls_ecc_curve_t curve
);
45 int _gnutls_proc_ecdh_common_server_kx (gnutls_session_t session
, uint8_t * data
,