* \ingroup BC_aes_m BC_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "beecrypt/aes.h"
+#include "aes.h"
#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && defined(LITTLE_ENDIAN)
# if (BYTE_ORDER != BIG_ENDIAN) && (BYTE_ORDER != LITTLE_ENDIAN)
#endif
#if WORDS_BIGENDIAN
-# include "beecrypt/aes_be.h"
+# include "aes_be.h"
#else
-# include "beecrypt/aes_le.h"
+# include "aes_le.h"
#endif
+#include "debug.h"
+
#ifdef ASM_AESENCRYPTECB
extern int aesEncryptECB(aesParam*, uint32_t*, const uint32_t*, unsigned int);
#endif
* \author Bob Deblier <bob.deblier@pandora.be>
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "base64.h"
+#include "endianness.h"
-#include "beecrypt/base64.h"
-#include "beecrypt/endianness.h"
-
-#if HAVE_CTYPE_H
-# include <ctype.h>
-#endif
+#include "debug.h"
static const char* to_b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
* \ingroup ES_m PRNG_m HASH_m HMAC_m BC_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "beecrypt.h"
-#include "beecrypt/beecrypt.h"
+#include "entropy.h"
-#include "beecrypt/entropy.h"
+#include "fips186.h"
+#include "mtprng.h"
-#include "beecrypt/fips186.h"
-#include "beecrypt/mtprng.h"
+#include "md5.h"
+#include "sha1.h"
+#include "sha256.h"
-#include "beecrypt/md5.h"
-#include "beecrypt/sha1.h"
-#include "beecrypt/sha256.h"
+#include "hmacmd5.h"
+#include "hmacsha1.h"
+#include "hmacsha256.h"
-#include "beecrypt/hmacmd5.h"
-#include "beecrypt/hmacsha1.h"
-#include "beecrypt/hmacsha256.h"
+#include "aes.h"
+#include "blowfish.h"
+#include "blockmode.h"
-#include "beecrypt/aes.h"
-#include "beecrypt/blowfish.h"
-#include "beecrypt/blockmode.h"
+#include "debug.h"
static entropySource entropySourceList[] =
{
* \ingroup BC_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "blockmode.h"
-#include "beecrypt/blockmode.h"
+#include "debug.h"
int blockEncryptECB(const blockCipher* bc, blockCipherParam* bp, uint32_t* dst, const uint32_t* src, unsigned int nblocks)
{
* \ingroup BC_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "blockpad.h"
-#include "beecrypt/blockpad.h"
+#include "debug.h"
memchunk* pkcs5Pad(size_t blockbytes, memchunk* tmp)
{
* \ingroup BC_m BC_blowfish_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "blowfish.h"
+#include "endianness.h"
-#include "beecrypt/blowfish.h"
-#include "beecrypt/endianness.h"
+#include "debug.h"
#ifdef ASM_BLOWFISHENCRYPTECB
extern int blowfishEncryptECB(blowfishparam*, uint32_t*, const uint32_t*, unsigned int);
--- /dev/null
+/**
+ * To be included after all other includes.
+ */
+#ifndef H_DEBUG
+#define H_DEBUG
+
+#include <assert.h>
+
+#ifdef DMALLOC
+#include <dmalloc.h>
+#endif
+
+#endif /* H_DEBUG */
* \ingroup DL_m DL_dh_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "dhaes.h"
+#include "dlsvdp-dh.h"
+#include "blockmode.h"
+#include "blockpad.h"
-#include "beecrypt/dhaes.h"
-#include "beecrypt/dlsvdp-dh.h"
-#include "beecrypt/blockmode.h"
-#include "beecrypt/blockpad.h"
+#include "debug.h"
/*
* Good combinations will be:
* \ingroup DL_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "dldp.h"
+#include "mp.h"
+#include "mpprime.h"
-#include "beecrypt/dldp.h"
-#include "beecrypt/mp.h"
-#include "beecrypt/mpprime.h"
+#include "debug.h"
/*!\addtogroup DL_m
* \{
* \ingroup DL_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "dlkp.h"
-#include "beecrypt/dlkp.h"
+#include "debug.h"
int dlkp_pPair(dlkp_p* kp, randomGeneratorContext* rgc, const dldp_p* param)
{
* \ingroup DL_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "dlpk.h"
-#include "beecrypt/dlpk.h"
+#include "debug.h"
/*!\addtogroup DL_m
* \{
* \ingroup DL_m DL_dh_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "dlsvdp-dh.h"
-#include "beecrypt/dlsvdp-dh.h"
+#include "debug.h"
/*!\addtogroup DL_dh_m
* \{
* \ingroup DL_m DL_dsa_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "dsa.h"
+#include "dldp.h"
-#include "beecrypt/dsa.h"
-#include "beecrypt/dldp.h"
+#include "debug.h"
int dsasign(const mpbarrett* p, const mpbarrett* q, const mpnumber* g, randomGeneratorContext* rgc, const mpnumber* hm, const mpnumber* x, mpnumber* r, mpnumber* s)
{
* \author Bob Deblier <bob.deblier@pandora.be>
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "elgamal.h"
+#include "dldp.h"
-#include "beecrypt/elgamal.h"
-#include "beecrypt/dldp.h"
+#include "debug.h"
int elgv1sign(const mpbarrett* p, const mpbarrett* n, const mpnumber* g, randomGeneratorContext* rgc, const mpnumber* hm, const mpnumber* x, mpnumber* r, mpnumber* s)
{
* \author Bob Deblier <bob.deblier@pandora.be>
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "endianness.h"
-#include "beecrypt/endianness.h"
+#include "debug.h"
int16_t swap16(int16_t n)
{
* \ingroup ES_m ES_audio_m ES_dsp_m ES_random_m ES_urandom_m ES_tty_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "beecrypt/entropy.h"
-#include "beecrypt/endianness.h"
+#include "entropy.h"
+#include "endianness.h"
#if WIN32
# include <mmsystem.h>
# if HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
# endif
-# if HAVE_SYS_STAT_H
-# include <sys/types.h>
-# include <sys/stat.h>
-# endif
-# if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-# else
-# if HAVE_SYS_TIME_H
-# include <sys/time.h>
-# elif HAVE_TIME_H
-# include <time.h>
-# endif
-# endif
# if HAVE_SYS_AUDIOIO_H
# include <sys/audioio.h>
# endif
# include <aio.h>
# endif
#endif
-#if HAVE_FCNTL_H
-# include <fcntl.h>
-#endif
-#if HAVE_ERRNO_H
-# include <errno.h>
-#endif
+
+#include "debug.h"
#if WIN32
static HINSTANCE entropy_instance = (HINSTANCE) 0;
* \ingroup PRNG_m PRNG_fips186_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "fips186.h"
-#include "beecrypt/fips186.h"
+#include "debug.h"
/*!\addtogroup PRNG_fips186_m
* \{
* \ingroup HMAC_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "hmac.h"
+#include "endianness.h"
-#include "beecrypt/hmac.h"
-#include "beecrypt/endianness.h"
+#include "debug.h"
/*!\addtogroup HMAC_m
* \{
* \ingroup HMAC_m HMAC_md5_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "hmacmd5.h"
-#include "beecrypt/hmacmd5.h"
+#include "debug.h"
/*!\addtogroup HMAC_md5_m
* \{
* \ingroup HMAC_m HMAC_sha1_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "hmacsha1.h"
-#include "beecrypt/hmacsha1.h"
+#include "debug.h"
/*!\addtogroup HMAC_sha1_m
* \{
* \ingroup HMAC_m HMAC_sha256_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "hmacsha256.h"
-#include "beecrypt/hmacsha256.h"
+#include "debug.h"
/*!\addtogroup HMAC_sha256_m
* \{
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "beecrypt/beecrypt.h"
-#include "beecrypt/blockmode.h"
-#include "beecrypt/mpnumber.h"
-#include "beecrypt/mpbarrett.h"
+#include "beecrypt.h"
+#include "blockmode.h"
+#include "mpnumber.h"
+#include "mpbarrett.h"
#if JAVAGLUE
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-#if HAVE_MALLOC_H
-# include <malloc.h>
-#endif
-
#include "javaglue.h"
+#include "debug.h"
+
static const char* JAVA_OUT_OF_MEMORY_ERROR = "java/lang/OutOfMemoryError";
static const char* JAVA_PROVIDER_EXCEPTION = "java/security/ProviderException";
static const char* JAVA_INVALID_KEY_EXCEPTION = "java/security/InvalidKeyException";
* \ingroup HASH_m HASH_md5_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "md5.h"
+#include "endianness.h"
-#include "beecrypt/md5.h"
-#include "beecrypt/endianness.h"
+#include "debug.h"
/*!\addtogroup HASH_md5_m
* \{
* \author Bob Deblier <bob.deblier@pandora.be>
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "memchunk.h"
-#include "beecrypt/memchunk.h"
+#include "debug.h"
memchunk* memchunkAlloc(size_t size)
{
* \ingroup MP_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "mp.h"
+#include "mpopt.h"
-#include "beecrypt/mp.h"
-#include "beecrypt/mpopt.h"
+#include "debug.h"
#ifndef ASM_MPZERO
void mpzero(size_t size, mpw* data)
* \ingroup MP__m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "beecrypt.h"
+#include "mpprime.h"
+#include "mpnumber.h"
+#include "mpbarrett.h"
-#include "beecrypt/beecrypt.h"
-#include "beecrypt/mpprime.h"
-#include "beecrypt/mpnumber.h"
-#include "beecrypt/mpbarrett.h"
+#include "debug.h"
/*
* mpbzero
* \ingroup MP_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "mpnumber.h"
-#include "beecrypt/mpnumber.h"
+#include "debug.h"
void mpnzero(mpnumber* n)
{
* \ingroup MP_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "mpprime.h"
-#include "beecrypt/mpprime.h"
+#include "debug.h"
/*
* A word of explanation here on what this table accomplishes:
* \ingroup PRNG_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "mtprng.h"
-#include "beecrypt/mtprng.h"
+#include "debug.h"
#define hiBit(a) ((a) & 0x80000000U)
#define loBit(a) ((a) & 0x1U)
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#include "beecrypt/pkcs1.h"
+#include "pkcs1.h"
+
+#include "debug.h"
const byte EMSA_MD5_DIGESTINFO[18] = {
0x30,0x20,0x30,0x0c,0x06,0x08,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x02,0x05,0x05,0x00,
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#include "beecrypt/pkcs12.h"
+#include "pkcs12.h"
+
+#include "debug.h"
int pkcs12_derive_key(const hashFunction* h, byte id, const byte* pdata, size_t psize, const byte* sdata, size_t ssize, size_t iterationcount, byte* ndata, size_t nsize)
{
*/
#define _REENTRANT 1 /* XXX config.h collides with pyconfig.h */
-#include "config.h"
+#include "system.h"
#include "Python.h"
#ifdef __LCLINT__
#define PyObject_HEAD int _PyObjectHead;
#endif
-#include "beecrypt/python/mpw-py.h"
-#include "beecrypt/python/rng-py.h"
+#include "mpw-py.h"
+#include "rng-py.h"
+
+#include "debug.h"
#ifdef __LCLINT__
#undef PyObject_HEAD
/*@unchecked@*/
extern PyTypeObject PyFrame_Type;
-#include "beecrypt/python/mpw-py.h" /* XXX debug only */
-#include "beecrypt/python/rng-py.h" /* XXX debug only */
+#include "mpw-py.h" /* XXX debug only */
+#include "rng-py.h" /* XXX debug only */
+
+#include "debug.h"
/**
*/
#define _REENTRANT 1 /* XXX config.h collides with pyconfig.h */
#define _GNU_SOURCE /* XXX pick up stpcpy et al */
-#include "config.h"
+
+#include "system.h"
#include "Python.h"
#include "longintrepr.h"
#define PyObject_HEAD int _PyObjectHead;
#endif
-#include "beecrypt/python/mpw-py.h"
-#include "beecrypt/python/rng-py.h"
+#include "mpw-py.h"
+#include "rng-py.h"
#include "debug-py.c"
+#include "debug.h"
+
#define ABS(_x) ((_x) < 0 ? -(_x) : (_x))
#if !defined(MAX)
#define MAX(x, y) ((x) < (y) ? (y) : (x))
*/
#define _REENTRANT 1 /* XXX config.h collides with pyconfig.h */
-#include "config.h"
+
+#include "system.h"
#include "Python.h"
#ifdef __LCLINT__
#define PyObject_HEAD int _PyObjectHead;
#endif
-#include "beecrypt/python/rng-py.h"
+#include "rng-py.h"
#include "debug-py.c"
+#include "debug.h"
+
/*@unchecked@*/
static int _rng_debug = 0;
* \ingroup IF_m IF_rsa_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "rsa.h"
-#include "beecrypt/rsa.h"
+#include "debug.h"
int rsapub(const mpbarrett* n, const mpnumber* e,
const mpnumber* m, mpnumber* c)
* \ingroup IF_m IF_rsa_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "rsakp.h"
+#include "mpprime.h"
-#include "beecrypt/rsakp.h"
-#include "beecrypt/mpprime.h"
+#include "debug.h"
/*!\addtogroup IF_rsa_m
* \{
* \ingroup IF_m IF_rsa_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "rsapk.h"
-#include "beecrypt/rsapk.h"
+#include "debug.h"
/*!\addtogroup IF_rsa_m
* \{
* \ingroup HASH_m HASH_sha1_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "sha1.h"
+#include "endianness.h"
-#include "beecrypt/sha1.h"
-#include "beecrypt/endianness.h"
+#include "debug.h"
/*!\addtogroup HASH_sha1_m
* \{
* \ingroup HASH_m HASH_sha256_m
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "sha256.h"
+#include "endianness.h"
-#include "beecrypt/sha256.h"
-#include "beecrypt/endianness.h"
+#include "debug.h"
/*!\addtogroup HASH_sha256_m
* \{
--- /dev/null
+/**
+ * \file beecrypt/system.h
+ */
+
+#ifndef H_SYSTEM
+#define H_SYSTEM
+
+#define BEECRYPT_DLL_EXPORT
+
+#if defined(_WIN32) && !defined(WIN32)
+# define WIN32 1
+#endif
+
+#if WIN32 && !__CYGWIN32__
+# include "win.h"
+#else
+# ifdef HAVE_CONFIG_H
+# include "config.h"
+# endif
+#endif
+
+#if defined(__LCLINT__)
+/* XXX from /usr/include/bits/sigset.h in glibc-2.2.4 */
+/*@-sizeoftype@*/
+# define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int)))
+/*@-redef@*/
+typedef struct
+ {
+ unsigned long int __val[_SIGSET_NWORDS];
+ } __sigset_t;
+/*@=redef@*/
+/*@=sizeoftype@*/
+#endif
+
+#include "gnu.h"
+
+#if HAVE_SYS_STAT_H
+# include <sys/types.h>
+# include <sys/stat.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
+#if HAVE_TIME_H
+# include <time.h>
+#endif
+
+#ifdef HAVE_STRING_H
+# include <string.h>
+#endif
+
+#if HAVE_ERRNO_H
+# include <errno.h>
+#endif
+
+#if HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+
+#ifdef HAVE_FCNTL_H
+# include <fcntl.h>
+#else
+# include <sys/file.h>
+#endif
+
+#if HAVE_CTYPE_H
+# include <ctype.h>
+#endif
+
+#if HAVE_MALLOC_H && !defined(__LCLINT__)
+# include <malloc.h>
+#endif
+
+#endif /* H_SYSTEM */
* \author Bob Deblier <bob.deblier@pandora.be>
*/
+#include "system.h"
+
#include "beecrypt.h"
#include "timestamp.h"
-#include <stdio.h>
+#include "debug.h"
#define SECONDS 10
* \author Bob Deblier <bob.deblier@pandora.be>
*/
+#include "system.h"
+
#include "beecrypt.h"
#include "timestamp.h"
-#include <stdio.h>
+#include "debug.h"
#define SECONDS 10
* \author Bob Deblier <bob.deblier@pandora.be>
*/
+#include "system.h"
+
#include "beecrypt.h"
#include "dldp.h"
#include "timestamp.h"
-#include <stdio.h>
+#include "debug.h"
#define SECONDS 10
* \ingroup UNIT_m
*/
-#include <stdio.h>
+#include "system.h"
#include "aes.h"
+#include "debug.h"
+
extern int fromhex(byte*, const char*);
struct vector
* \ingroup UNIT_m
*/
-#include <stdio.h>
+#include "system.h"
#include "blowfish.h"
+#include "debug.h"
+
extern int fromhex(byte*, const char*);
struct vector
+#include "system.h"
+
#include "mp.h"
+#include "debug.h"
+
void hexdump(byte* b, int count)
{
int i;
* \ingroup UNIT_m
*/
-#include <stdio.h>
+#include "system.h"
#include "beecrypt.h"
#include "dldp.h"
+#include "debug.h"
+
int main()
{
int failures = 0;
* \ingroup UNIT_m
*/
-#include <stdio.h>
+#include "system.h"
#include "beecrypt.h"
#include "dlkp.h"
#include "dsa.h"
+#include "debug.h"
+
struct vector
{
const char* p;
* \ingroup UNIT_m
*/
-#include <stdio.h>
+#include "system.h"
#include "hmacmd5.h"
+#include "debug.h"
+
struct vector
{
int keybits;
* \ingroup UNIT_m
*/
-#include <stdio.h>
+#include "system.h"
#include "hmacsha1.h"
+#include "debug.h"
+
struct vector
{
int keybits;
* \ingroup UNIT_m
*/
-#include <stdio.h>
+#include "system.h"
#include "md5.h"
+#include "debug.h"
+
struct vector
{
int input_size;
-#include <stdio.h>
+#include "system.h"
#include "beecrypt.h"
#include "mp.h"
+#include "debug.h"
+
#define INIT 0xdeadbeefU;
static const mpw Z[4] = { 0U, 0U, 0U, 0U };
* \ingroup UNIT_m
*/
-#include <stdio.h>
+#include "system.h"
#include "beecrypt.h"
#include "mpnumber.h"
+#include "debug.h"
+
struct vector
{
const char* m;
* \ingroup UNIT_m
*/
-#include <stdio.h>
+#include "system.h"
#include "beecrypt.h"
#include "rsa.h"
+#include "debug.h"
+
static const char* rsa_n = "bbf82f090682ce9c2338ac2b9da871f7368d07eed41043a440d6b6f07454f51fb8dfbaaf035c02ab61ea48ceeb6fcd4876ed520d60e1ec4619719d8a5b8b807fafb8e0a3dfc737723ee6b4b7d93a2584ee6a649d060953748834b2454598394ee0aab12d7b61a51f527a9a41f6c1687fe2537298ca2a8f5946f8e5fd091dbdcb";
static const char* rsa_e = "11";
static const char* rsa_p = "eecfae81b1b9b3c908810b10a1b5600199eb9f44aef4fda493b81a9e3d84f632124ef0236e5d1e3b7e28fae7aa040a2d5b252176459d1f397541ba2a58fb6599";
* \ingroup UNIT_m
*/
-#include <stdio.h>
+#include "system.h"
#include "sha1.h"
#include "memchunk.h"
+#include "debug.h"
+
struct vector
{
int input_size;
*
*/
-#include <stdio.h>
+#include "system.h"
#include "sha256.h"
+#include "debug.h"
+
struct vector
{
int input_size;
*
*/
+#include "system.h"
+
#include "beecrypt.h"
-#include <string.h>
+#include "debug.h"
int fromhex(byte* data, const char* hexdata)
{
* \author Bob Deblier <bob.deblier@pandora.be>
*/
-#define BEECRYPT_DLL_EXPORT
+#include "system.h"
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "timestamp.h"
-#include "beecrypt/timestamp.h"
-
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-# include <sys/time.h>
-# elif HAVE_TIME_H
-# include <time.h>
-# endif
-#endif
+#include "debug.h"
javalong timestamp()
{