Commit 51fb8e8f authored by Niels Möller's avatar Niels Möller

Include bignum.h instead of gmp.h.

parent b2780333
2014-06-25 Niels Möller <nisse@lysator.liu.se> 2014-06-25 Niels Möller <nisse@lysator.liu.se>
* dsa.h: Include bignum.h instead of gmp.h.
* ecc-internal.h: Likewise.
* ecc.h: Likewise.
* gmp-glue.h: Likewise.
* pkcs1.h: Likewise.
* rsa.h: Likewise.
* testsuite/testutils.c (die): Use plain vfprintf, not * testsuite/testutils.c (die): Use plain vfprintf, not
gmp_vfprintf. gmp_vfprintf.
(write_mpn): New function. (write_mpn): New function.
......
...@@ -34,9 +34,8 @@ ...@@ -34,9 +34,8 @@
#ifndef NETTLE_DSA_H_INCLUDED #ifndef NETTLE_DSA_H_INCLUDED
#define NETTLE_DSA_H_INCLUDED #define NETTLE_DSA_H_INCLUDED
#include <gmp.h>
#include "nettle-types.h" #include "nettle-types.h"
#include "bignum.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
...@@ -34,9 +34,8 @@ ...@@ -34,9 +34,8 @@
#ifndef NETTLE_ECC_INTERNAL_H_INCLUDED #ifndef NETTLE_ECC_INTERNAL_H_INCLUDED
#define NETTLE_ECC_INTERNAL_H_INCLUDED #define NETTLE_ECC_INTERNAL_H_INCLUDED
#include <gmp.h>
#include "nettle-types.h" #include "nettle-types.h"
#include "bignum.h"
#include "ecc-curve.h" #include "ecc-curve.h"
#include "gmp-glue.h" #include "gmp-glue.h"
......
...@@ -34,9 +34,8 @@ ...@@ -34,9 +34,8 @@
#ifndef NETTLE_ECC_H_INCLUDED #ifndef NETTLE_ECC_H_INCLUDED
#define NETTLE_ECC_H_INCLUDED #define NETTLE_ECC_H_INCLUDED
#include <gmp.h>
#include "nettle-types.h" #include "nettle-types.h"
#include "bignum.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#ifndef NETTLE_GMP_GLUE_H_INCLUDED #ifndef NETTLE_GMP_GLUE_H_INCLUDED
#define NETTLE_GMP_GLUE_H_INCLUDED #define NETTLE_GMP_GLUE_H_INCLUDED
#include <gmp.h> #include "bignum.h"
#include "nettle-stdint.h"
#ifdef mpz_limbs_read #ifdef mpz_limbs_read
#define GMP_HAVE_mpz_limbs_read 1 #define GMP_HAVE_mpz_limbs_read 1
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
#ifndef NETTLE_PKCS1_H_INCLUDED #ifndef NETTLE_PKCS1_H_INCLUDED
#define NETTLE_PKCS1_H_INCLUDED #define NETTLE_PKCS1_H_INCLUDED
#include <gmp.h>
#include "nettle-types.h" #include "nettle-types.h"
#include "bignum.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
#ifndef NETTLE_RSA_H_INCLUDED #ifndef NETTLE_RSA_H_INCLUDED
#define NETTLE_RSA_H_INCLUDED #define NETTLE_RSA_H_INCLUDED
#include <gmp.h>
#include "nettle-types.h" #include "nettle-types.h"
#include "bignum.h"
#include "md5.h" #include "md5.h"
#include "sha1.h" #include "sha1.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment