Blame lib/nettle/ecc-gost-curve.h

Packit Service 991b93
/* ecc-gost-curve.h
Packit Service 991b93
Packit Service 991b93
   Copyright (C) 2013 Niels Möller
Packit Service 991b93
Packit Service 991b93
   This file is part of GNU Nettle.
Packit Service 991b93
Packit Service 991b93
   GNU Nettle is free software: you can redistribute it and/or
Packit Service 991b93
   modify it under the terms of either:
Packit Service 991b93
Packit Service 991b93
     * the GNU Lesser General Public License as published by the Free
Packit Service 991b93
       Software Foundation; either version 3 of the License, or (at your
Packit Service 991b93
       option) any later version.
Packit Service 991b93
Packit Service 991b93
   or
Packit Service 991b93
Packit Service 991b93
     * the GNU General Public License as published by the Free
Packit Service 991b93
       Software Foundation; either version 2 of the License, or (at your
Packit Service 991b93
       option) any later version.
Packit Service 991b93
Packit Service 991b93
   or both in parallel, as here.
Packit Service 991b93
Packit Service 991b93
   GNU Nettle is distributed in the hope that it will be useful,
Packit Service 991b93
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 991b93
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 991b93
   General Public License for more details.
Packit Service 991b93
Packit Service 991b93
   You should have received copies of the GNU General Public License and
Packit Service 991b93
   the GNU Lesser General Public License along with this program.  If
Packit Service 991b93
   not, see https://www.gnu.org/licenses/.
Packit Service 991b93
*/
Packit Service 991b93
Packit Service 991b93
/* Development of Nettle's ECC support was funded by the .SE Internet Fund. */
Packit Service 991b93
Packit Service 991b93
#ifndef GNUTLS_LIB_NETTLE_GOST_ECC_GOST_CURVE_H
Packit Service 991b93
#define GNUTLS_LIB_NETTLE_GOST_ECC_GOST_CURVE_H
Packit Service 991b93
Packit Service 991b93
#ifdef __cplusplus
Packit Service 991b93
extern "C" {
Packit Service 991b93
#endif
Packit Service 991b93
Packit Service 991b93
/* The contents of this struct is internal. */
Packit Service 991b93
struct ecc_curve;
Packit Service 991b93
Packit Service 991b93
#ifndef NETTLE_PURE
Packit Service 991b93
#ifdef __GNUC__
Packit Service 991b93
#define NETTLE_PURE __attribute__((pure))
Packit Service 991b93
#else
Packit Service 991b93
#define NETTLE_PURE
Packit Service 991b93
#endif
Packit Service 991b93
#endif
Packit Service 991b93
Packit Service 991b93
#define gost_point_mul_g _gnutls_nettle_ecc_gost_point_mul_g
Packit Service 991b93
#define gost_point_set _gnutls_nettle_ecc_gost_point_set
Packit Service 991b93
#define gostdsa_generate_keypair _gnutls_nettle_ecc_gostdsa_generate_keypair
Packit Service 991b93
void
Packit Service 991b93
gost_point_mul_g (struct ecc_point *r, const struct ecc_scalar *n);
Packit Service 991b93
int
Packit Service 991b93
gost_point_set (struct ecc_point *p, const mpz_t x, const mpz_t y);
Packit Service 991b93
void
Packit Service 991b93
gostdsa_generate_keypair (struct ecc_point *pub,
Packit Service 991b93
			  struct ecc_scalar *key,
Packit Service 991b93
			  void *random_ctx, nettle_random_func *random);
Packit Service 991b93
Packit Service 991b93
#define nettle_get_gost_gc256b _gnutls_nettle_ecc_get_gost_gc256b
Packit Service 991b93
#define nettle_get_gost_gc512a _gnutls_nettle_ecc_get_gost_gc512a
Packit Service 991b93
const struct ecc_curve * NETTLE_PURE nettle_get_gost_gc256b(void);
Packit Service 991b93
const struct ecc_curve * NETTLE_PURE nettle_get_gost_gc512a(void);
Packit Service 991b93
Packit Service 991b93
#ifdef __cplusplus
Packit Service 991b93
}
Packit Service 991b93
#endif
Packit Service 991b93
Packit Service 991b93
#endif /* GNUTLS_LIB_NETTLE_GOST_ECC_GOST_CURVE_H */