beecrypt.h   beecrypt.h 
skipping to change at line 32 skipping to change at line 32
* 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 _BEECRYPT_H #ifndef _BEECRYPT_H
#define _BEECRYPT_H #define _BEECRYPT_H
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include "mp32number.h"
typedef struct typedef struct
{ {
int size; int size;
byte* data; byte* data;
} memchunk; } memchunk;
/* /*
* Entropy Sources * Entropy Sources
*/ */
skipping to change at line 320 skipping to change at line 322
*/ */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
BEEDLLAPI BEEDLLAPI
void hashFunctionContextInit(hashFunctionContext*, const hashFunction*); void hashFunctionContextInit(hashFunctionContext*, const hashFunction*);
BEEDLLAPI BEEDLLAPI
void hashFunctionContextFree(hashFunctionContext*); void hashFunctionContextFree(hashFunctionContext*);
BEEDLLAPI
int hashFunctionContextReset(hashFunctionContext*);
BEEDLLAPI
int hashFunctionContextUpdate(hashFunctionContext*, const byte*, int);
BEEDLLAPI
int hashFunctionContextUpdateMC(hashFunctionContext*, const memchunk*);
BEEDLLAPI
int hashFunctionContextUpdateMP32(hashFunctionContext*, const mp32number*);
BEEDLLAPI
int hashFunctionContextDigest(hashFunctionContext*, mp32number*);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
/* /*
* Keyed Hash Functions, a.k.a. Message Authentication Codes * Keyed Hash Functions, a.k.a. Message Authentication Codes
*/ */
typedef void keyedHashFunctionParam; typedef void keyedHashFunctionParam;
skipping to change at line 446 skipping to change at line 458
*/ */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
BEEDLLAPI BEEDLLAPI
void keyedHashFunctionContextInit(keyedHashFunctionContext*, const keyedHas hFunction*); void keyedHashFunctionContextInit(keyedHashFunctionContext*, const keyedHas hFunction*);
BEEDLLAPI BEEDLLAPI
void keyedHashFunctionContextFree(keyedHashFunctionContext*); void keyedHashFunctionContextFree(keyedHashFunctionContext*);
BEEDLLAPI
int keyedHashFunctionContextSetup(keyedHashFunctionContext*, const uint32*,
int);
BEEDLLAPI
int keyedHashFunctionContextReset(keyedHashFunctionContext*);
BEEDLLAPI
int keyedHashFunctionContextUpdate(keyedHashFunctionContext*, const byte*,
int);
BEEDLLAPI
int keyedHashFunctionContextUpdateMC(keyedHashFunctionContext*, const memch
unk*);
BEEDLLAPI
int keyedHashFunctionContextUpdateMP32(keyedHashFunctionContext*, const mp3
2number*);
BEEDLLAPI
int keyedHashFunctionContextDigest(keyedHashFunctionContext*, mp32number*);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
/* /*
* Block ciphers * Block ciphers
*/ */
typedef enum typedef enum
 End of changes. 3 change blocks. 
0 lines changed or deleted 28 lines changed or added


 mp32number.h   mp32number.h 
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 _MP32NUMBER_H #ifndef _MP32NUMBER_H
#define _MP32NUMBER_H #define _MP32NUMBER_H
#include "beecrypt.h" #ifdef HAVE_CONFIG_H
# include "config.h"
#endif
typedef struct typedef struct
{ {
uint32 size; uint32 size;
uint32* data; uint32* data;
} mp32number; } mp32number;
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added


 mp32opt.h   mp32opt.h 
skipping to change at line 79 skipping to change at line 79
#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
#undef ASM_MP32ADDSQRTRC #define ASM_MP32ADDSQRTRC
# endif # endif
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 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/