Blame lib/nettle/int/dsa-compute-k.h
|
Packit Service |
991b93 |
/*
|
|
Packit Service |
991b93 |
* Copyright (C) 2019 Red Hat, Inc.
|
|
Packit Service |
991b93 |
*
|
|
Packit Service |
991b93 |
* Author: Daiki Ueno
|
|
Packit Service |
991b93 |
*
|
|
Packit Service |
991b93 |
* This file is part of GnuTLS.
|
|
Packit Service |
991b93 |
*
|
|
Packit Service |
991b93 |
* The GnuTLS is free software; you can redistribute it and/or
|
|
Packit Service |
991b93 |
* modify it under the terms of the GNU Lesser General Public License
|
|
Packit Service |
991b93 |
* as published by the Free Software Foundation; either version 2.1 of
|
|
Packit Service |
991b93 |
* the License, or (at your option) any later version.
|
|
Packit Service |
991b93 |
*
|
|
Packit Service |
991b93 |
* This library is distributed in the hope that it will be useful, but
|
|
Packit Service |
991b93 |
* 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 |
* Lesser General Public License for more details.
|
|
Packit Service |
991b93 |
*
|
|
Packit Service |
991b93 |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit Service |
991b93 |
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
Packit Service |
991b93 |
*
|
|
Packit Service |
991b93 |
*/
|
|
Packit Service |
991b93 |
|
|
Packit Service |
991b93 |
#ifndef GNUTLS_LIB_NETTLE_INT_DSA_COMPUTE_K_H
|
|
Packit Service |
991b93 |
#define GNUTLS_LIB_NETTLE_INT_DSA_COMPUTE_K_H
|
|
Packit Service |
991b93 |
|
|
Packit Service |
991b93 |
#include <gnutls/gnutls.h>
|
|
Packit Service |
991b93 |
#include <nettle/bignum.h> /* includes gmp.h */
|
|
Packit Service |
991b93 |
|
|
Packit Service |
991b93 |
int
|
|
Packit Service |
991b93 |
_gnutls_dsa_compute_k(mpz_t k,
|
|
Packit Service |
991b93 |
const mpz_t q,
|
|
Packit Service |
991b93 |
const mpz_t x,
|
|
Packit Service |
991b93 |
gnutls_mac_algorithm_t mac,
|
|
Packit Service |
991b93 |
const uint8_t *digest,
|
|
Packit Service |
991b93 |
size_t length);
|
|
Packit Service |
991b93 |
|
|
Packit Service |
991b93 |
#endif /* GNUTLS_LIB_NETTLE_INT_DSA_COMPUTE_K_H */
|