beecrypt.h | beecrypt.h | |||
---|---|---|---|---|
/* | /* | |||
* beecrypt.h | * beecrypt.h | |||
* | * | |||
* Beecrypt library hooks & stubs, header | * Beecrypt library hooks & stubs, header | |||
* | * | |||
* Copyright (c) 1999-2000 Virtual Unlimited B.V. | * Copyright (c) 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
skipping to change at line 503 | skipping to change at line 503 | |||
typedef int (*blockModeEncrypt)(blockCipherParam*, int, uint32*, const uint 32*); | typedef int (*blockModeEncrypt)(blockCipherParam*, int, uint32*, const uint 32*); | |||
typedef int (*blockModeDecrypt)(blockCipherParam*, int, uint32*, const uint 32*); | typedef int (*blockModeDecrypt)(blockCipherParam*, int, uint32*, const uint 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 (*blockCipherSetIV )(blockCipherParam*, const uint32*); | typedef int (*blockCipherSetIV )(blockCipherParam*, const uint32*); | |||
typedef int (*blockCipherEncrypt)(blockCipherParam*, uint32*, const uint32* ); | typedef int (*blockCipherEncrypt)(blockCipherParam*, uint32*, const uint32* ); | |||
typedef int (*blockCipherDecrypt)(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 , | |||
skipping to change at line 611 | skipping to change at line 611 | |||
* required by the blockCipher, freeing will deallocate that buffer. | * required by the blockCipher, freeing will deallocate that buffer. | |||
*/ | */ | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
BEEDLLAPI | BEEDLLAPI | |||
void blockCipherContextInit(blockCipherContext*, const blockCipher*); | void blockCipherContextInit(blockCipherContext*, const blockCipher*); | |||
BEEDLLAPI | BEEDLLAPI | |||
void blockCipherContextSetup(blockCipherContext*, const uint32*, int, ciphe | ||||
rOperation); | ||||
BEEDLLAPI | ||||
void blockCipherContextSetIV(blockCipherContext*, const uint32*); | ||||
BEEDLLAPI | ||||
void blockCipherContextFree(blockCipherContext*); | void blockCipherContextFree(blockCipherContext*); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 7 lines changed or added | |||
blowfish.h | blowfish.h | |||
---|---|---|---|---|
/* | /* | |||
* blowfish.h | * blowfish.h | |||
* | * | |||
* Blowfish block cipher, header | * Blowfish block cipher, header | |||
* | * | |||
* Copyright (c) 1999-2000 Virtual Unlimited B.V. | * Copyright (c) 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
config.gnu.h | config.gnu.h | |||
---|---|---|---|---|
skipping to change at line 34 | skipping to change at line 34 | |||
* | * | |||
*/ | */ | |||
#ifndef _CONFIG_GNU_H | #ifndef _CONFIG_GNU_H | |||
#define _CONFIG_GNU_H | #define _CONFIG_GNU_H | |||
#ifndef _REENTRANT | #ifndef _REENTRANT | |||
#define _REENTRANT | #define _REENTRANT | |||
#endif | #endif | |||
#if LINUX | ||||
#define _LIBC_REENTRANT | ||||
#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 CYGWIN 0 | |||
#define FREEBSD 0 | #define DARWIN 0 | |||
#define HPUX 0 | #define FREEBSD 0 | |||
#define LINUX 1 | #define HPUX 0 | |||
#define MACOSX 0 | #define LINUX 1 | |||
#define OPENBSD 0 | #define MACOSX 0 | |||
#define SOLARIS 0 | #define OPENBSD 0 | |||
#define WIN32 0 | #define OSF 0 | |||
#define QNX 0 | ||||
#define SOLARIS 0 | ||||
#define WIN32 0 | ||||
#define JAVAGLUE 0 | #define JAVAGLUE 0 | |||
#if LINUX | #define LEADING_UNDERSCORE 0 | |||
#define _LIBC_REENTRANT | #define WORDS_BIGENDIAN 0 | |||
#endif | ||||
#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 | |||
#define HAVE_CTYPE_H 1 | #define HAVE_CTYPE_H 1 | |||
#define HAVE_UNISTD_H 1 | #define HAVE_UNISTD_H 1 | |||
#define HAVE_FCNTL_H 1 | #define HAVE_FCNTL_H 1 | |||
#define HAVE_TIME_H 1 | #define HAVE_TIME_H 1 | |||
skipping to change at line 107 | skipping to change at line 111 | |||
#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 | |||
#define SIZEOF_UNSIGNED_LONG_LONG 8 | #define SIZEOF_UNSIGNED_LONG_LONG 8 | |||
#define SIZEOF_FLOAT 4 | #define SIZEOF_FLOAT 4 | |||
#define SIZEOF_DOUBLE 8 | #define SIZEOF_DOUBLE 8 | |||
#if (SIZEOF_CHAR == 1) | #if (SIZEOF_CHAR == 1) | |||
typedef char int8; | #define INT8_TYPE char | |||
typedef char javabyte; | ||||
#else | #else | |||
#error sizeof(char) not 1 | #error sizeof(char) not 1 | |||
#endif | #endif | |||
#if (SIZEOF_SHORT == 2) | #if (SIZEOF_SHORT == 2) | |||
typedef short int16; | #define INT16_TYPE short | |||
typedef short javashort; | ||||
#else | #else | |||
#error sizeof(short) is not 2 | #error sizeof(short) not 2 | |||
#endif | #endif | |||
#if (SIZEOF_INT == 4) | #if (SIZEOF_INT == 4) | |||
typedef int int32; | #define INT32_TYPE int | |||
typedef int javaint; | ||||
#elif (SIZEOF_LONG == 4) | #elif (SIZEOF_LONG == 4) | |||
typedef int int32; | #define INT32_TYPE long | |||
typedef long javaint; | ||||
#else | #else | |||
#error compiler has no 32 bit integer | #error compiler has no 32 bit integer | |||
#endif | #endif | |||
#if (SIZEOF_LONG == 8) | #if (SIZEOF_LONG == 8) | |||
typedef long int64; | #define INT64_TYPE long | |||
typedef long javalong; | #define HAVE_LONG_LONG 0 | |||
#elif (SIZEOF_LONG_LONG == 8) | #elif (SIZEOF_LONG_LONG == 8) | |||
typedef long long int64; | #define INT64_TYPE long long | |||
typedef long long javalong; | #define HAVE_LONG_LONG 1 | |||
#else | #else | |||
#error compiler has no 64 bit integer | #error compiler has no 64 bit integer | |||
#endif | #endif | |||
#if (SIZEOF_FLOAT == 4) | ||||
typedef float javafloat; | ||||
#else | ||||
#error compiler has no 32 bit float | ||||
#endif | ||||
#if (SIZEOF_DOUBLE == 8) | ||||
typedef double javadouble; | ||||
#else | ||||
#error compiler has no 64 bit double; | ||||
#endif | ||||
#if (SIZEOF_UNSIGNED_CHAR == 1) | #if (SIZEOF_UNSIGNED_CHAR == 1) | |||
typedef unsigned char uint8; | #define UINT8_TYPE unsigned char | |||
#else | #else | |||
#error sizeof(unsigned char) is not 1 | #error sizeof(unsigned char) not 1 | |||
#endif | #endif | |||
#if (SIZEOF_UNSIGNED_SHORT == 2) | #if (SIZEOF_UNSIGNED_SHORT == 2) | |||
typedef unsigned short uint16; | #define UINT16_TYPE unsigned short | |||
typedef unsigned short javachar; | ||||
typedef unsigned short unicode; | ||||
#else | #else | |||
#error sizeof(unsigned short) is not 2 | #error sizeof(unsigned short) not 2 | |||
#endif | #endif | |||
#if (SIZEOF_UNSIGNED_INT == 4) | #if (SIZEOF_UNSIGNED_INT == 4) | |||
typedef unsigned int uint32; | #define UINT32_TYPE unsigned int | |||
#elif (SIZEOF_UNSIGNED_LONG == 4) | #elif (SIZEOF_UNSIGNED_LONG == 4) | |||
typedef unsigned long uint32; | #define UINT32_TYPE unsigned long | |||
#else | #else | |||
#error compiler has no 32 bit unsigned integer | #error compiler has no 32 bit unsigned integer | |||
#endif | #endif | |||
#if (SIZEOF_UNSIGNED_LONG == 8) | #if (SIZEOF_UNSIGNED_LONG == 8) | |||
typedef unsigned long uint64; | #define UINT64_TYPE unsigned long | |||
#elif (SIZEOF_UNSIGNED_LONG_LONG == 8) | #elif (SIZEOF_UNSIGNED_LONG_LONG == 8) | |||
typedef unsigned long long uint64; | #define UINT64_TYPE unsigned long long | |||
#else | #else | |||
#error compiler has no 64 bit unsigned integer | #error compiler has no 64 bit unsigned integer | |||
#endif | #endif | |||
typedef uint8 byte; | #if (SIZEOF_FLOAT == 4) | |||
#define FLOAT4_TYPE float | ||||
#else | ||||
#error compile has no 32 bit float | ||||
#endif | ||||
#if (SIZEOF_DOUBLE == 8) | ||||
#define DOUBLE8_TYPE double | ||||
#else | ||||
#error compile has no 64 bit double | ||||
#endif | ||||
#endif | #endif | |||
End of changes. 20 change blocks. | ||||
51 lines changed or deleted | 47 lines changed or added | |||
config.h | config.h | |||
---|---|---|---|---|
/* | /* | |||
* config.h | * config.h | |||
* | * | |||
* Config.h generic config file | * Config.h generic config file | |||
* | * | |||
* Copyright (c) 2000, Virtual Unlimited B.V. | * Copyright (c) 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
skipping to change at line 29 | skipping to change at line 29 | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A | |||
* | * | |||
*/ | */ | |||
#ifndef _CONFIG_H | #ifndef _CONFIG_H | |||
#define _CONFIG_H | #define _CONFIG_H | |||
#if defined(_WIN32) && !defined(WIN32) | ||||
# define WIN32 1 | ||||
#endif | ||||
#if WIN32 | #if WIN32 | |||
# include "win32/config.win.h" | # include <win32/config.win.h> | |||
# ifdef BEECRYPT_DLL_EXPORT | # ifdef BEECRYPT_DLL_EXPORT | |||
# define BEEDLLAPI | # define BEEDLLAPI | |||
# else | # else | |||
# define BEEDLLAPI __declspec(dllimport) | # define BEEDLLAPI __declspec(dllimport) | |||
# endif | # endif | |||
/*typedef UINT8_TYPE byte;*/ | ||||
#else | #else | |||
# include "gnu/config.gnu.h" | # include <gnu/config.gnu.h> | |||
# define BEEDLLAPI | # define BEEDLLAPI | |||
typedef UINT8_TYPE byte; | ||||
#endif | #endif | |||
typedef INT8_TYPE int8; | ||||
typedef INT16_TYPE int16; | ||||
typedef INT32_TYPE int32; | ||||
typedef INT64_TYPE int64; | ||||
typedef UINT8_TYPE uint8; | ||||
typedef UINT16_TYPE uint16; | ||||
typedef UINT32_TYPE uint32; | ||||
typedef UINT64_TYPE uint64; | ||||
typedef INT8_TYPE javabyte; | ||||
typedef INT16_TYPE javashort; | ||||
typedef INT32_TYPE javaint; | ||||
typedef INT64_TYPE javalong; | ||||
typedef UINT16_TYPE javachar; | ||||
typedef FLOAT4_TYPE javafloat; | ||||
typedef DOUBLE8_TYPE javadouble; | ||||
#endif | #endif | |||
End of changes. 7 change blocks. | ||||
3 lines changed or deleted | 29 lines changed or added | |||
endianness.h | endianness.h | |||
---|---|---|---|---|
/* | /* | |||
* endianness.h | * endianness.h | |||
* | * | |||
* Endian-dependant encoding/decoding, header | * Endian-dependant encoding/decoding, header | |||
* | * | |||
* Copyright (c) 1998-2000 Virtual Unlimited B.V. | * Copyright (c) 1998, 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
entropy.h | entropy.h | |||
---|---|---|---|---|
/* | /* | |||
* entropy.h | * entropy.h | |||
* | * | |||
* Entropy gathering routine(s) for pseudo-random generator initialization, header | * Entropy gathering routine(s) for pseudo-random generator initialization, header | |||
* | * | |||
* Copyright (c) 1998-2000 Virtual Unlimited B.V. | * Copyright (c) 1998, 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
fips180.h | fips180.h | |||
---|---|---|---|---|
/* | /* | |||
* fips180.h | * fips180.h | |||
* | * | |||
* SHA-1 hash function, header | * SHA-1 hash function, header | |||
* | * | |||
* Copyright (c) 1997-2000 Virtual Unlimited B.V. | * Copyright (c) 1997, 1998, 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
fips186.h | fips186.h | |||
---|---|---|---|---|
/* | /* | |||
* fips186.h | * fips186.h | |||
* | * | |||
* FIPS186 pseudo-random generator, with SHA-1 as H function, header | * FIPS186 pseudo-random generator, with SHA-1 as H function, header | |||
* | * | |||
* Copyright (c) 1998-2000 Virtual Unlimited B.V. | * Copyright (c) 1998, 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
hmac.h | hmac.h | |||
---|---|---|---|---|
/* | /* | |||
* hmac.h | * hmac.h | |||
* | * | |||
* HMAC message authentication code, header | * HMAC message authentication code, header | |||
* | * | |||
* Copyright (c) 1999-2000 Virtual Unlimited B.V. | * Copyright (c) 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
mp32.h | mp32.h | |||
---|---|---|---|---|
/* | /* | |||
* mp32.h | * mp32.h | |||
* | * | |||
* Multiprecision 2's complement integer routines for 32 bit cpu, header | * Multiprecision 2's complement integer routines for 32 bit cpu, header | |||
* | * | |||
* Copyright (c) 1997-2000 Virtual Unlimited B.V. | * Copyright (c) 1997, 1998, 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
mp32barrett.h | mp32barrett.h | |||
---|---|---|---|---|
/* | /* | |||
* mp32barrett.h | * mp32barrett.h | |||
* | * | |||
* Barrett modular reduction, header | * Barrett modular reduction, header | |||
* | * | |||
* Copyright (c) 1997-2000 Virtual Unlimited B.V. | * Copyright (c) 1997, 1998, 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
skipping to change at line 61 | skipping to change at line 61 | |||
BEEDLLAPI | BEEDLLAPI | |||
void mp32bset (mp32barrett*, uint32, const uint32*); | void mp32bset (mp32barrett*, uint32, const uint32*); | |||
BEEDLLAPI | BEEDLLAPI | |||
void mp32bmu (mp32barrett*); | void mp32bmu (mp32barrett*); | |||
BEEDLLAPI | BEEDLLAPI | |||
void mp32brnd (const mp32barrett*, randomGeneratorContext*); | void mp32brnd (const mp32barrett*, randomGeneratorContext*); | |||
BEEDLLAPI | BEEDLLAPI | |||
void mp32brndres (const mp32barrett*, uint32*, randomGeneratorContext*); | void mp32brndres (const mp32barrett*, uint32*, randomGeneratorContext*); | |||
BEEDLLAPI | ||||
void mp32brndoddres(const mp32barrett*, uint32*, randomGeneratorContext*); | ||||
BEEDLLAPI | ||||
void mp32brndinvres(const mp32barrett*, uint32*, randomGeneratorContext*); | ||||
BEEDLLAPI | BEEDLLAPI | |||
void mp32bmodsubone(const mp32barrett*); | void mp32bmodsubone(const mp32barrett*); | |||
BEEDLLAPI | BEEDLLAPI | |||
void mp32bneg (const mp32barrett*); | void mp32bneg (const mp32barrett*); | |||
BEEDLLAPI | BEEDLLAPI | |||
void mp32bmod (const mp32barrett*, uint32, const uint32*); | void mp32bmod (const mp32barrett*, uint32, const uint32*); | |||
BEEDLLAPI | BEEDLLAPI | |||
void mp32baddmod (const mp32barrett*, uint32, const uint32*, uint32, cons t uint32*); | void mp32baddmod (const mp32barrett*, uint32, const uint32*, uint32, cons t uint32*); | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 5 lines changed or added | |||
mp32number.h | mp32number.h | |||
---|---|---|---|---|
/* | /* | |||
* mp32number.h | * mp32number.h | |||
* | * | |||
* Multiprecision numbers, header | * Multiprecision numbers, header | |||
* | * | |||
* Copyright (c) 1997-2000 Virtual Unlimited B.V. | * Copyright (c) 1997, 1998, 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
mp32opt.h | mp32opt.h | |||
---|---|---|---|---|
/* | /* | |||
* mp32opt.h | * mp32opt.h | |||
* | * | |||
* Multiprecision integer assembler-optimized routined for 32 bit cpu, head er | * Multiprecision integer assembler-optimized routined for 32 bit cpu, head er | |||
* | * | |||
* Copyright (c) 1999-2000 Virtual Unlimited B.V. | * Copyright (c) 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
skipping to change at line 60 | skipping to change at line 60 | |||
#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 | |||
#if defined(ia64) | #if defined(ia64) | |||
#define ASM_MP32ZERO | ||||
#define ASM_MP32COPY | ||||
#define ASM_MP32ADD | #define ASM_MP32ADD | |||
#define ASM_MP32SUB | #define ASM_MP32SUB | |||
#define ASM_MP32SETMUL | #define ASM_MP32SETMUL | |||
#define ASM_MP32ADDMUL | #define ASM_MP32ADDMUL | |||
#endif | #endif | |||
#if defined(powerpc) | #if defined(powerpc) | |||
#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(sparcv9) || defined(sparcv8plus) | ||||
#define ASM_MP32ADDW | ||||
#define ASM_MP32ADD | ||||
#define ASM_MP32SUBW | ||||
#define ASM_MP32SUB | ||||
#define ASM_MP32SETMUL | ||||
#define ASM_MP32ADDMUL | ||||
#define ASM_MP32ADDSQRTRC | ||||
#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 | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 12 lines changed or added | |||
mtprng.h | mtprng.h | |||
---|---|---|---|---|
/* | /* | |||
* mtprng.h | * mtprng.h | |||
* | * | |||
* Mersenne twister pseudo-random number generator, header | * Mersenne twister pseudo-random number generator, header | |||
* | * | |||
* Copyright (c) 1998-2000 Virtual Unlimited B.V. | * Copyright (c) 1998, 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
sha1hmac.h | sha1hmac.h | |||
---|---|---|---|---|
/* | /* | |||
* sha1hmac.h | * sha1hmac.h | |||
* | * | |||
* SHA-1/HMAC message authentication code, header | * SHA-1/HMAC message authentication code, header | |||
* | * | |||
* Copyright (c) 1999-2000 Virtual Unlimited B.V. | * Copyright (c) 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
timestamp.h | timestamp.h | |||
---|---|---|---|---|
/* | /* | |||
* timestamp.h | * timestamp.h | |||
* | * | |||
* Java-compatible 64 bit timestamp, header | * Java-compatible 64 bit timestamp, header | |||
* | * | |||
* Copyright (c) 1999-2000 Virtual Unlimited B.V. | * Copyright (c) 1999, 2000 Virtual Unlimited B.V. | |||
* | * | |||
* Author: Bob Deblier <bob@virtualunlimited.com> | * Author: Bob Deblier <bob@virtualunlimited.com> | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * version 2.1 of the License, or (at your option) any later version. | |||
* | * | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||