Check whether `-fgnu89-inline' is supported before using it.
[gnutls.git] / lib / gnutls_srp.h
blob1bf36e94326be90e937cc524a9e3386a0c2a3c93
1 /*
2 * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation
4 * Author: Nikos Mavrogiannopoulos
6 * This file is part of GNUTLS.
8 * The GNUTLS library 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 2.1 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
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21 * USA
25 #ifdef ENABLE_SRP
27 int _gnutls_srp_gx (opaque * text, size_t textsize, opaque ** result,
28 mpi_t g, mpi_t prime, gnutls_alloc_function);
29 mpi_t _gnutls_calc_srp_B (mpi_t * ret_b, mpi_t g, mpi_t n, mpi_t v);
30 mpi_t _gnutls_calc_srp_u (mpi_t A, mpi_t B, mpi_t N);
31 mpi_t _gnutls_calc_srp_S1 (mpi_t A, mpi_t b, mpi_t u, mpi_t v, mpi_t n);
32 mpi_t _gnutls_calc_srp_A (mpi_t * a, mpi_t g, mpi_t n);
33 mpi_t _gnutls_calc_srp_S2 (mpi_t B, mpi_t g, mpi_t x, mpi_t a, mpi_t u,
34 mpi_t n);
35 int _gnutls_calc_srp_x (char *username, char *password, opaque * salt,
36 size_t salt_size, size_t * size, void *digest);
37 int _gnutls_srp_gn (opaque ** ret_g, opaque ** ret_n, int bits);
39 /* g is defined to be 2 */
40 #define SRP_MAX_HASH_SIZE 24
42 #endif