Commit 121313f4 authored by Niels Möller's avatar Niels Möller

* nettle-types.h: New (generated) file, to be used instead of including

<inttypes.h> directly. Updated all users of inttypes.h.

Rev: src/nettle/aes.h:1.7
Rev: src/nettle/aesdata.c:1.3
Rev: src/nettle/arcfour.h:1.5
Rev: src/nettle/base16.h:1.3
Rev: src/nettle/base64.h:1.14
Rev: src/nettle/bignum.h:1.8
Rev: src/nettle/blowfish.h:1.9
Rev: src/nettle/cast128.h:1.5
Rev: src/nettle/cbc.h:1.5
Rev: src/nettle/des.h:1.9
Rev: src/nettle/dsa.h:1.9
Rev: src/nettle/knuth-lfib.h:1.3
Rev: src/nettle/md2.h:1.3
Rev: src/nettle/md4.h:1.3
Rev: src/nettle/md5.h:1.7
Rev: src/nettle/memxor.h:1.3
Rev: src/nettle/nettle-meta.h:1.11
Rev: src/nettle/pkcs1.h:1.3
Rev: src/nettle/realloc.h:1.2
Rev: src/nettle/rsa.h:1.24
Rev: src/nettle/serpent.h:1.7
Rev: src/nettle/sexp.h:1.16
Rev: src/nettle/sha.h:1.4
Rev: src/nettle/twofish.h:1.6
parent 73e2c0ce
......@@ -26,7 +26,7 @@
#ifndef NETTLE_AES_H_INCLUDED
#define NETTLE_AES_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define aes_set_encrypt_key nettle_aes_set_encrypt_key
......
......@@ -3,11 +3,12 @@
#endif
#include <assert.h>
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "nettle-types.h"
#if 1
# define BYTE_FORMAT "0x%02x"
# define BYTE_COLUMNS 8
......
......@@ -26,7 +26,7 @@
#ifndef NETTLE_ARCFOUR_H_INCLUDED
#define NETTLE_ARCFOUR_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define arcfour_set_key nettle_arcfour_set_key
......
......@@ -27,7 +27,7 @@
#ifndef NETTLE_BASE16_H_INCLUDED
#define NETTLE_BASE16_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define base16_encode_single nettle_base16_encode_single
......
......@@ -26,7 +26,7 @@
#ifndef NETTLE_BASE64_H_INCLUDED
#define NETTLE_BASE64_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define base64_encode_init nettle_base64_encode_init
......
......@@ -29,7 +29,7 @@
#include "nettle-meta.h"
#include <gmp.h>
#include <inttypes.h>
#include "nettle-types.h"
/* Size needed for signed encoding, including extra sign byte if
* necessary. */
......
......@@ -26,7 +26,7 @@
#ifndef NETTLE_BLOWFISH_H_INCLUDED
#define NETTLE_BLOWFISH_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define blowfish_set_key nettle_blowfish_set_key
......
......@@ -32,7 +32,7 @@
#ifndef NETTLE_CAST128_H_INCLUDED
#define NETTLE_CAST128_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define cast128_set_key nettle_cast128_set_key
......
......@@ -26,7 +26,7 @@
#ifndef NETTLE_CBC_H_INCLUDED
#define NETTLE_CBC_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define cbc_encrypt nettle_cbc_encrypt
......
......@@ -35,7 +35,7 @@
#ifndef NETTLE_DES_H_INCLUDED
#define NETTLE_DES_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Namespace mangling */
#define des_set_key nettle_des_set_key
......
......@@ -26,9 +26,10 @@
#ifndef NETTLE_DSA_H_INCLUDED
#define NETTLE_DSA_H_INCLUDED
#include <inttypes.h>
#include <gmp.h>
#include "nettle-types.h"
#include "sha.h"
/* For nettle_random_func */
......
......@@ -31,7 +31,7 @@
#ifndef NETTLE_KNUTH_LFIB_H_INCLUDED
#define NETTLE_KNUTH_LFIB_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Namespace mangling */
#define knuth_lfib_init nettle_knuth_lfib_init
......
......@@ -26,7 +26,7 @@
#ifndef NETTLE_MD2_H_INCLUDED
#define NETTLE_MD2_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define md2_init nettle_md2_init
......
......@@ -26,7 +26,7 @@
#ifndef NETTLE_MD4_H_INCLUDED
#define NETTLE_MD4_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define md4_init nettle_md4_init
......
......@@ -26,7 +26,7 @@
#ifndef NETTLE_MD5_H_INCLUDED
#define NETTLE_MD5_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define md5_init nettle_md5_init
......
......@@ -5,8 +5,8 @@
#ifndef NETTLE_MEMXOR_H_INCLUDED
#define NETTLE_MEMXOR_H_INCLUDED
#include <inttypes.h>
#include <stdlib.h>
#include "nettle-types.h"
uint8_t *memxor(uint8_t *dst, const uint8_t *src, size_t n);
......
......@@ -26,7 +26,7 @@
#ifndef NETTLE_META_H_INCLUDED
#define NETTLE_META_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Randomness. Used by key generation and dsa signature creation. */
typedef void (*nettle_random_func)(void *ctx,
......
......@@ -26,8 +26,8 @@
#ifndef NETTLE_PKCS1_H_INCLUDED
#define NETTLE_PKCS1_H_INCLUDED
#include <inttypes.h>
#include <gmp.h>
#include "nettle-types.h"
/* Name mangling */
#define pkcs1_signature_prefix nettle_pkcs1_signature_prefix
......
......@@ -25,7 +25,7 @@
#ifndef NETTLE_REALLOC_H_INCLUDED
#define NETTLE_REALLOC_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
typedef void *nettle_realloc_func(void *ctx, void *p, unsigned length);
......
......@@ -26,8 +26,8 @@
#ifndef NETTLE_RSA_H_INCLUDED
#define NETTLE_RSA_H_INCLUDED
#include <inttypes.h>
#include <gmp.h>
#include "nettle-types.h"
#include "md5.h"
#include "sha.h"
......
......@@ -31,7 +31,7 @@
#ifndef NETTLE_SERPENT_H_INCLUDED
#define NETTLE_SERPENT_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define serpent_set_key nettle_serpent_set_key
......
......@@ -26,8 +26,8 @@
#ifndef NETTLE_SEXP_H_INCLUDED
#define NETTLE_SEXP_H_INCLUDED
#include <inttypes.h>
#include <stdarg.h>
#include "nettle-types.h"
/* Name mangling */
#define sexp_iterator_first nettle_sexp_iterator_first
......
......@@ -26,7 +26,7 @@
#ifndef NETTLE_SHA_H_INCLUDED
#define NETTLE_SHA_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define sha1_init nettle_sha1_init
......
......@@ -32,7 +32,7 @@
#ifndef NETTLE_TWOFISH_H_INCLUDED
#define NETTLE_TWOFISH_H_INCLUDED
#include <inttypes.h>
#include "nettle-types.h"
/* Name mangling */
#define twofish_set_key nettle_twofish_set_key
......
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