beecrypt.h   beecrypt.h 
skipping to change at line 150 skipping to change at line 150
* *
* int (*cleanup)(randomGeneratorParam* param); * int (*cleanup)(randomGeneratorParam* param);
* *
* This function will cleanup after the use of a generator * This function will cleanup after the use of a generator
* Return value is 0 on success, or -1 on failure. * Return value is 0 on success, or -1 on failure.
*/ */
typedef struct typedef struct
{ {
const char* name; const char* name;
const int paramsize; const unsigned int paramsize;
const randomGeneratorSetup setup; const randomGeneratorSetup setup;
const randomGeneratorSeed seed; const randomGeneratorSeed seed;
const randomGeneratorNext next; const randomGeneratorNext next;
const randomGeneratorCleanup cleanup; const randomGeneratorCleanup cleanup;
} randomGenerator; } randomGenerator;
/* /*
* You can use the following functions to find random generators implemente d by * You can use the following functions to find random generators implemente d by
* the library: * the library:
* *
skipping to change at line 259 skipping to change at line 259
* Return value is 0 on success, or -1 on failure. * Return value is 0 on success, or -1 on failure.
* NOTE: data must be at least have a bytesize of 'digestsize' as described * NOTE: data must be at least have a bytesize of 'digestsize' as described
* in the hashFunction struct. * in the hashFunction struct.
* NOTE: for safety reasons, after calling digest, each specific implementa tion * NOTE: for safety reasons, after calling digest, each specific implementa tion
* MUST reset itself so that previous values in the parameters are erased. * MUST reset itself so that previous values in the parameters are erased.
*/ */
typedef struct typedef struct
{ {
const char* name; const char* name;
const int paramsize; /* i const unsigned int paramsize; /* in bytes
n bytes */ */
const int digestsize; /* i const unsigned int digestsize; /* in bytes
n bytes */ */
const hashFunctionReset reset; const hashFunctionReset reset;
const hashFunctionUpdate update; const hashFunctionUpdate update;
const hashFunctionDigest digest; const hashFunctionDigest digest;
} hashFunction; } hashFunction;
/* /*
* You can use the following functions to find hash functions implemented b y * You can use the following functions to find hash functions implemented b y
* the library: * the library:
* *
* hashFunctionCount returns the number of hash functions available. * hashFunctionCount returns the number of hash functions available.
skipping to change at line 391 skipping to change at line 391
* Return value is 0 on success, or -1 on failure. * Return value is 0 on success, or -1 on failure.
* NOTE: data must be at least have a bytesize of 'digestsize' as described * NOTE: data must be at least have a bytesize of 'digestsize' as described
* in the keyedHashFunction struct. * in the keyedHashFunction struct.
* NOTE: for safety reasons, after calling digest, each specific implementa tion * NOTE: for safety reasons, after calling digest, each specific implementa tion
* MUST reset itself so that previous values in the parameters are erased. * MUST reset itself so that previous values in the parameters are erased.
*/ */
typedef struct typedef struct
{ {
const char* name; const char* name;
const int paramsize; const unsigned int paramsize; /* i
/* in bytes */ n bytes */
const int digestsize; const unsigned int digestsize; /* i
/* in bytes */ n bytes */
const int keybitsmin; const unsigned int keybitsmin; /* i
/* in bits */ n bits */
const int keybitsmax; const unsigned int keybitsmax; /* i
/* in bits */ n bits */
const int keybitsinc; const unsigned int keybitsinc; /* i
/* in bits */ n bits */
const keyedHashFunctionSetup setup; const keyedHashFunctionSetup setup;
const keyedHashFunctionReset reset; const keyedHashFunctionReset reset;
const keyedHashFunctionUpdate update; const keyedHashFunctionUpdate update;
const keyedHashFunctionDigest digest; const keyedHashFunctionDigest digest;
} keyedHashFunction; } keyedHashFunction;
/* /*
* You can use the following functions to find keyed hash functions impleme nted * You can use the following functions to find keyed hash functions impleme nted
* by the library: * by the library:
* *
skipping to change at line 493 skipping to change at line 493
} cipherOperation; } cipherOperation;
typedef enum typedef enum
{ {
ECB, ECB,
CBC CBC
} cipherMode; } cipherMode;
typedef void blockCipherParam; typedef void blockCipherParam;
typedef int (*blockModeEncrypt)(blockCipherParam*, int, uint32*, const uint typedef int (*blockModeEncrypt)(blockCipherParam*, int, uint32*, const uint
32*, const uint32*); 32*);
typedef int (*blockModeDecrypt)(blockCipherParam*, int, uint32*, const uint typedef int (*blockModeDecrypt)(blockCipherParam*, int, uint32*, const uint
32*, const uint32*); 32*);
typedef struct typedef struct
{ {
const blockModeEncrypt encrypt; const blockModeEncrypt encrypt;
const blockModeDecrypt decrypt; const blockModeDecrypt decrypt;
} blockMode; } blockMode;
typedef int (*blockCipherSetup )(blockCipherParam*, const uint32*, int, ci pherOperation); typedef int (*blockCipherSetup )(blockCipherParam*, const uint32*, int, ci pherOperation);
typedef int (*blockCipherEncrypt)(blockCipherParam*, uint32 *); typedef int (*blockCipherSetIV )(blockCipherParam*, const uint32*);
typedef int (*blockCipherDecrypt)(blockCipherParam*, uint32 *); typedef int (*blockCipherEncrypt)(blockCipherParam*, uint32*, const uint32*
);
typedef int (*blockCipherDecrypt)(blockCipherParam*, uint32*, const uint32*
);
/* /*
* The struct 'blockCipher' holds information and pointers to code specific * The struct 'blockCipher' holds information and pointers to code specific
* to each blockcipher. Specific block ciphers MAY be written to be * to each blockcipher. Specific block ciphers MAY be written to be
* multithread-safe. * multithread-safe.
* *
* The struct field 'keybitsmin' contains the minimum number of bits a key * The struct field 'keybitsmin' contains the minimum number of bits a key
* must contains, 'keybitsmax' the maximum number of bits a key may contain , * must contains, 'keybitsmax' the maximum number of bits a key may contain ,
* 'keybitsinc', the increment in bits that may be used between min and max . * 'keybitsinc', the increment in bits that may be used between min and max .
* *
skipping to change at line 543 skipping to change at line 544
* *
* This function will decrypt one block of data (with bit size equal to * This function will decrypt one block of data (with bit size equal to
* 'blockbits') * 'blockbits')
* Return value is 0 on success, or -1 on failure. * Return value is 0 on success, or -1 on failure.
* NOTE: this is raw decryption, without padding, etc. * NOTE: this is raw decryption, without padding, etc.
*/ */
typedef struct typedef struct
{ {
const char* name; const char* name;
const int paramsize; /* i const unsigned int paramsize; /* in bytes
n bytes */ */
const int keybitsmin; /* i const unsigned int blocksize; /* in bytes
n bits */ */
const int keybitsmax; /* i const unsigned int keybitsmin; /* in bits *
n bits */ /
const int keybitsinc; /* i const unsigned int keybitsmax; /* in bits *
n bits */ /
const int blockbits; /* i const unsigned int keybitsinc; /* in bits *
n bits */ /
const blockCipherSetup setup; const blockCipherSetup setup;
const blockCipherSetIV setiv;
const blockCipherEncrypt encrypt; const blockCipherEncrypt encrypt;
const blockCipherDecrypt decrypt; const blockCipherDecrypt decrypt;
const blockMode* mode; const blockMode* mode;
} blockCipher; } blockCipher;
/* /*
* You can use the following functions to find blockciphers implemented by * You can use the following functions to find blockciphers implemented by
* the library: * the library:
* *
* blockCipherCount returns the number of blockciphers available. * blockCipherCount returns the number of blockciphers available.
 End of changes. 7 change blocks. 
31 lines changed or deleted 35 lines changed or added


 blockmode.h   blockmode.h 
skipping to change at line 36 skipping to change at line 36
#ifndef _BLOCKMODE_H #ifndef _BLOCKMODE_H
#define _BLOCKMODE_H #define _BLOCKMODE_H
#include "beecrypt.h" #include "beecrypt.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
BEEDLLAPI BEEDLLAPI
int blockEncrypt(const blockCipher*, blockCipherParam*, cipherMode, int, ui nt32*, const uint32*, const uint32*); int blockEncrypt(const blockCipher*, blockCipherParam*, cipherMode, int, ui nt32*, const uint32*);
BEEDLLAPI BEEDLLAPI
int blockDecrypt(const blockCipher*, blockCipherParam*, cipherMode, int, ui nt32*, const uint32*, const uint32*); int blockDecrypt(const blockCipher*, blockCipherParam*, cipherMode, int, ui nt32*, const uint32*);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added


 blowfish.h   blowfish.h 
skipping to change at line 39 skipping to change at line 39
#include "beecrypt.h" #include "beecrypt.h"
#include "blowfishopt.h" #include "blowfishopt.h"
#define BLOWFISHROUNDS 16 #define BLOWFISHROUNDS 16
#define BLOWFISHPSIZE (BLOWFISHROUNDS+2) #define BLOWFISHPSIZE (BLOWFISHROUNDS+2)
typedef struct typedef struct
{ {
uint32 p[BLOWFISHPSIZE]; uint32 p[BLOWFISHPSIZE];
uint32 s[1024]; uint32 s[1024];
uint32 fdback[2];
} blowfishParam; } blowfishParam;
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
extern const BEEDLLAPI blockCipher blowfish; extern const BEEDLLAPI blockCipher blowfish;
BEEDLLAPI BEEDLLAPI
int blowfishSetup (blowfishParam*, const uint32*, int, cipherOperation); int blowfishSetup (blowfishParam*, const uint32*, int, cipherOperation);
BEEDLLAPI BEEDLLAPI
int blowfishEncrypt(blowfishParam*, uint32*); int blowfishSetIV (blowfishParam*, const uint32*);
BEEDLLAPI BEEDLLAPI
int blowfishDecrypt(blowfishParam*, uint32*); int blowfishEncrypt(blowfishParam*, uint32*, const uint32*);
BEEDLLAPI
int blowfishDecrypt(blowfishParam*, uint32*, const uint32*);
BEEDLLAPI BEEDLLAPI
int blowfishECBEncrypt(blowfishParam*, int, uint32*, const uint32*); int blowfishECBEncrypt(blowfishParam*, int, uint32*, const uint32*);
BEEDLLAPI BEEDLLAPI
int blowfishECBDecrypt(blowfishParam*, int, uint32*, const uint32*); int blowfishECBDecrypt(blowfishParam*, int, uint32*, const uint32*);
BEEDLLAPI BEEDLLAPI
int blowfishCBCEncrypt(blowfishParam*, int, uint32*, const uint32*, const u int32*); int blowfishCBCEncrypt(blowfishParam*, int, uint32*, const uint32*);
BEEDLLAPI BEEDLLAPI
int blowfishCBCDecrypt(blowfishParam*, int, uint32*, const uint32*, const u int32*); int blowfishCBCDecrypt(blowfishParam*, int, uint32*, const uint32*);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 5 change blocks. 
4 lines changed or deleted 7 lines changed or added


 blowfishopt.h   blowfishopt.h 
skipping to change at line 43 skipping to change at line 43
extern "C" { extern "C" {
#endif #endif
#if WIN32 #if WIN32
#if __INTEL__ && __MWERKS__ #if __INTEL__ && __MWERKS__
#define ASM_BLOWFISHENCRYPT #define ASM_BLOWFISHENCRYPT
#define ASM_BLOWFISHDECRYPT #define ASM_BLOWFISHDECRYPT
#endif #endif
#endif #endif
#ifdef __GNUC__ #if defined(__GNUC__)
#if defined(i586) || defined(i686)
#define ASM_BLOWFISHENCRYPT
#define ASM_BLOWFISHDECRYPT
#endif
#endif
#if defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#if defined(i586) || defined(i686) #if defined(i586) || defined(i686)
#define ASM_BLOWFISHENCRYPT #define ASM_BLOWFISHENCRYPT
#define ASM_BLOWFISHDECRYPT #define ASM_BLOWFISHDECRYPT
#endif #endif
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
 End of changes. 1 change blocks. 
1 lines changed or deleted 8 lines changed or added


 config.gnu.h   config.gnu.h 
skipping to change at line 40 skipping to change at line 40
#ifndef _REENTRANT #ifndef _REENTRANT
#define _REENTRANT #define _REENTRANT
#endif #endif
#ifndef __cplusplus #ifndef __cplusplus
/* #undef inline */ /* #undef inline */
#endif #endif
#define AIX 0 #define AIX 0
#define BEOS 0 #define BEOS 0
#define CYGWIN 0
#define FREEBSD 0 #define FREEBSD 0
#define HPUX 0 #define HPUX 0
#define LINUX 1 #define LINUX 1
#define MACOSX 0 #define MACOSX 0
#define OPENBSD 0 #define OPENBSD 0
#define SOLARIS 0 #define SOLARIS 0
#define WIN32 0 #define WIN32 0
#define JAVAGLUE 0
#if LINUX #if LINUX
#define _LIBC_REENTRANT #define _LIBC_REENTRANT
#endif #endif
#define WORDS_BIGENDIAN 0 #define WORDS_BIGENDIAN 0
#define HAVE_ERRNO_H 1 #define HAVE_ERRNO_H 1
#define HAVE_STRING_H 1 #define HAVE_STRING_H 1
#define HAVE_STDLIB_H 1 #define HAVE_STDLIB_H 1
#define HAVE_ALLOCA_H 1 #define HAVE_ALLOCA_H 1
skipping to change at line 73 skipping to change at line 76
#define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1 #define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TIME_H 1 #define HAVE_SYS_TIME_H 1
#define HAVE_THREAD_H 0 #define HAVE_THREAD_H 0
#define HAVE_SYNCH_H 0 #define HAVE_SYNCH_H 0
#define HAVE_PTHREAD_H 1 #define HAVE_PTHREAD_H 1
#define HAVE_SEMAPHORE_H 1 #define HAVE_SEMAPHORE_H 1
#define HAVE_TERMIO_H 1 #define HAVE_TERMIO_H 1
#define HAVE_TERMIOS_H 1
#define HAVE_SYS_AUDIOIO_H 0 #define HAVE_SYS_AUDIOIO_H 0
#define HAVE_SYS_IOCTL_H 1 #define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_SOUNDCARD_H 1 #define HAVE_SYS_SOUNDCARD_H 1
#define HAVE_ALLOCA 1 #define HAVE_ALLOCA 1
#define HAVE_GETTIMEOFDAY 1 #define HAVE_GETTIMEOFDAY 1
#define HAVE_GETHRTIME 0 #define HAVE_GETHRTIME 0
#define HAVE_DEV_TTY 1
#define HAVE_DEV_AUDIO 0 #define HAVE_DEV_AUDIO 0
#define HAVE_DEV_DSP 1 #define HAVE_DEV_DSP 1
#define HAVE_DEV_RANDOM 1 #define HAVE_DEV_RANDOM 1
#define HAVE_DEV_URANDOM 1
#define HAVE_DEV_TTY 1
#define SIZEOF_CHAR 1 #define SIZEOF_CHAR 1
#define SIZEOF_UNSIGNED_CHAR 1 #define SIZEOF_UNSIGNED_CHAR 1
#define SIZEOF_SHORT 2 #define SIZEOF_SHORT 2
#define SIZEOF_UNSIGNED_SHORT 2 #define SIZEOF_UNSIGNED_SHORT 2
#define SIZEOF_INT 4 #define SIZEOF_INT 4
#define SIZEOF_UNSIGNED_INT 4 #define SIZEOF_UNSIGNED_INT 4
#define SIZEOF_LONG 4 #define SIZEOF_LONG 4
#define SIZEOF_UNSIGNED_LONG 4 #define SIZEOF_UNSIGNED_LONG 4
#define SIZEOF_LONG_LONG 8 #define SIZEOF_LONG_LONG 8
 End of changes. 5 change blocks. 
1 lines changed or deleted 6 lines changed or added


 endianness.h   endianness.h 
skipping to change at line 149 skipping to change at line 149
BEEDLLAPI BEEDLLAPI
int decodeChar(javachar*, const byte*); int decodeChar(javachar*, const byte*);
BEEDLLAPI BEEDLLAPI
int decodeFloat(javafloat*, const byte*); int decodeFloat(javafloat*, const byte*);
BEEDLLAPI BEEDLLAPI
int decodeDouble(javadouble*, const byte*); int decodeDouble(javadouble*, const byte*);
BEEDLLAPI BEEDLLAPI
int decodeInts(javaint*, const byte*, int); int decodeInts(javaint*, const byte*, int);
BEEDLLAPI BEEDLLAPI
int decodeIntsPartial(javaint*, const byte*, int);
BEEDLLAPI
int decodeChars(javachar*, const byte*, int); int decodeChars(javachar*, const byte*, int);
BEEDLLAPI BEEDLLAPI
int writeByte(javabyte, FILE*); int writeByte(javabyte, FILE*);
BEEDLLAPI BEEDLLAPI
int writeShort(javashort, FILE*); int writeShort(javashort, FILE*);
BEEDLLAPI BEEDLLAPI
int writeInt(javaint, FILE*); int writeInt(javaint, FILE*);
BEEDLLAPI BEEDLLAPI
int writeLong(javalong, FILE*); int writeLong(javalong, FILE*);
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added


 entropy.h   entropy.h 
skipping to change at line 36 skipping to change at line 36
#ifndef _ENTROPY_H #ifndef _ENTROPY_H
#define _ENTROPY_H #define _ENTROPY_H
#include "beecrypt.h" #include "beecrypt.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#if WIN32 #if WIN32
BEEDLLAPI BEEDLLAPI
int entropy_provider_setup(HINSTANCE); int entropy_provider_setup(HINSTANCE);
BEEDLLAPI BEEDLLAPI
int entropy_provider_cleanup(); int entropy_provider_cleanup();
BEEDLLAPI BEEDLLAPI
int entropy_wavein(uint32*, int); int entropy_wavein(uint32*, int);
BEEDLLAPI
int entropy_console(uint32*, int);
BEEDLLAPI
int entropy_wincrypt(uint32*, int);
#else #else
#if HAVE_DEV_AUDIO #if HAVE_DEV_AUDIO
int entropy_dev_audio (uint32*, int); int entropy_dev_audio (uint32*, int);
#endif #endif
#if HAVE_DEV_DSP #if HAVE_DEV_DSP
int entropy_dev_dsp (uint32*, int); int entropy_dev_dsp (uint32*, int);
#endif #endif
#if HAVE_DEV_RANDOM #if HAVE_DEV_RANDOM
int entropy_dev_random(uint32*, int); int entropy_dev_random(uint32*, int);
#endif #endif
#if HAVE_DEV_URANDOM
int entropy_dev_urandom(uint32*, int);
#endif
#if HAVE_DEV_TTY #if HAVE_DEV_TTY
int entropy_dev_tty (uint32*, int); int entropy_dev_tty (uint32*, int);
#endif #endif
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 3 change blocks. 
1 lines changed or deleted 7 lines changed or added


 fips180opt.h   fips180opt.h 
skipping to change at line 48 skipping to change at line 48
#define ASM_SHA1PROCESS #define ASM_SHA1PROCESS
#endif #endif
#endif #endif
#ifdef __GNUC__ #ifdef __GNUC__
#if defined(i586) || defined(i686) #if defined(i586) || defined(i686)
#define ASM_SHA1PROCESS #define ASM_SHA1PROCESS
#endif #endif
#endif #endif
#if defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#if defined(i586) || defined(i686)
#define ASM_SHA1PROCESS
#endif
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added


 mp32opt.h   mp32opt.h 
skipping to change at line 48 skipping to change at line 48
#define ASM_MP32ADD #define ASM_MP32ADD
#define ASM_MP32SUBW #define ASM_MP32SUBW
#define ASM_MP32SUB #define ASM_MP32SUB
#define ASM_MP32MULTWO #define ASM_MP32MULTWO
#define ASM_MP32SETMUL #define ASM_MP32SETMUL
#define ASM_MP32ADDMUL #define ASM_MP32ADDMUL
#define ASM_MP32ADDSQRTRC #define ASM_MP32ADDSQRTRC
#endif #endif
#endif #endif
#ifdef __GNUC__ #if defined(__GNUC__)
#ifdef i386 #if defined(i386) || defined(i486) || defined(i586) || defined(i686)
#define ASM_MP32ADDW #define ASM_MP32ADDW
#define ASM_MP32ADD #define ASM_MP32ADD
#define ASM_MP32SUBW #define ASM_MP32SUBW
#define ASM_MP32SUB #define ASM_MP32SUB
#define ASM_MP32MULTWO #define ASM_MP32MULTWO
#define ASM_MP32SETMUL #define ASM_MP32SETMUL
#define ASM_MP32ADDMUL #define ASM_MP32ADDMUL
#define ASM_MP32ADDSQRTRC #define ASM_MP32ADDSQRTRC
#endif #endif
#ifdef powerpc #if defined(ia64)
#define ASM_MP32ADD
#define ASM_MP32SUB
#define ASM_MP32SETMUL
#define ASM_MP32ADDMUL
#endif
#if defined(powerpc)
#define ASM_MP32ADDW #define ASM_MP32ADDW
#define ASM_MP32ADD #define ASM_MP32ADD
/* there's still a problem to be fixed in the subtraction routines */ #define ASM_MP32SUBW
#undef ASM_MP32SUBW #define ASM_MP32SUB
#undef ASM_MP32SUB
#define ASM_MP32SETMUL #define ASM_MP32SETMUL
#define ASM_MP32ADDMUL #define ASM_MP32ADDMUL
#define ASM_MP32ADDSQRTRC #define ASM_MP32ADDSQRTRC
#endif #endif
#endif #endif
#if defined(__SUNPRO_C) || defined(__SUNPRO_CC) #if defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#if defined(sparcv9) || defined(sparcv8plus) #if defined(sparcv9) || defined(sparcv8plus)
#define ASM_MP32ADDW #define ASM_MP32ADDW
#define ASM_MP32ADD #define ASM_MP32ADD
#define ASM_MP32SUBW #define ASM_MP32SUBW
#define ASM_MP32SUB #define ASM_MP32SUB
#define ASM_MP32SETMUL #define ASM_MP32SETMUL
#define ASM_MP32ADDMUL #define ASM_MP32ADDMUL
#define ASM_MP32ADDSQRTRC #define ASM_MP32ADDSQRTRC
# endif #endif
#if defined(i386) || defined(i486) || defined(i586) || defined(i686)
#define ASM_MP32ADDW
#define ASM_MP32ADD
#define ASM_MP32SUBW
#define ASM_MP32SUB
#define ASM_MP32MULTWO
#define ASM_MP32SETMUL
#define ASM_MP32ADDMUL
#define ASM_MP32ADDSQRTRC
#endif
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 4 change blocks. 
7 lines changed or deleted 22 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/