Blame lib/srp.h

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