Blame lib/srp.h

Packit 549fdc
/*
Packit 549fdc
 * Copyright (C) 2000-2012 Free Software Foundation, Inc.
Packit 549fdc
 *
Packit 549fdc
 * Author: Nikos Mavrogiannopoulos
Packit 549fdc
 *
Packit 549fdc
 * This file is part of GnuTLS.
Packit 549fdc
 *
Packit 549fdc
 * The GnuTLS is free software; you can redistribute it and/or
Packit 549fdc
 * modify it under the terms of the GNU Lesser General Public License
Packit 549fdc
 * as published by the Free Software Foundation; either version 2.1 of
Packit 549fdc
 * the License, or (at your option) any later version.
Packit 549fdc
 *
Packit 549fdc
 * This library is distributed in the hope that it will be useful, but
Packit 549fdc
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 549fdc
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 549fdc
 * Lesser General Public License for more details.
Packit 549fdc
 *
Packit 549fdc
 * You should have received a copy of the GNU Lesser General Public License
Packit 549fdc
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
Packit 549fdc
 *
Packit 549fdc
 */
Packit 549fdc
Packit 549fdc
#ifndef _SRP_H
Packit 549fdc
# define _SRP_H
Packit 549fdc
Packit 549fdc
#include <config.h>
Packit 549fdc
Packit 549fdc
#ifdef ENABLE_SRP
Packit 549fdc
Packit 549fdc
bigint_t _gnutls_calc_srp_B(bigint_t * ret_b, bigint_t g, bigint_t n,
Packit 549fdc
			    bigint_t v);
Packit 549fdc
bigint_t _gnutls_calc_srp_u(bigint_t A, bigint_t B, bigint_t N);
Packit 549fdc
bigint_t _gnutls_calc_srp_S1(bigint_t A, bigint_t b, bigint_t u,
Packit 549fdc
			     bigint_t v, bigint_t n);
Packit 549fdc
bigint_t _gnutls_calc_srp_A(bigint_t * a, bigint_t g, bigint_t n);
Packit 549fdc
bigint_t _gnutls_calc_srp_S2(bigint_t B, bigint_t g, bigint_t x,
Packit 549fdc
			     bigint_t a, bigint_t u, bigint_t n);
Packit 549fdc
int _gnutls_calc_srp_x(char *username, char *password, uint8_t * salt,
Packit 549fdc
		       size_t salt_size, size_t * size, void *digest);
Packit 549fdc
int _gnutls_srp_gn(uint8_t ** ret_g, uint8_t ** ret_n, int bits);
Packit 549fdc
Packit 549fdc
/* g is defined to be 2 */
Packit 549fdc
#define SRP_MAX_HASH_SIZE 24
Packit 549fdc
Packit 549fdc
#endif
Packit 549fdc
Packit 549fdc
#endif