00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00025
#ifndef _BEECRYPT_API_H
00026
#define _BEECRYPT_API_H
00027
00028
#if defined(_WIN32) && !defined(WIN32)
00029
# define WIN32 1
00030
#endif
00031
00032
#if WIN32 && !__CYGWIN32__
00033
# include "beecrypt.win.h"
00034
# ifdef BEECRYPT_DLL_EXPORT
00035
# define BEECRYPTAPI __declspec(dllexport)
00036
# else
00037
# define BEECRYPTAPI __declspec(dllimport)
00038
# endif
00039
#else
00040
# include "beecrypt.gnu.h"
00041 # define BEECRYPTAPI
00042
#endif
00043
00044
#ifndef ROTL32
00045 # define ROTL32(x, s) (((x) << (s)) | ((x) >> (32 - (s))))
00046
#endif
00047
#ifndef ROTR32
00048 # define ROTR32(x, s) (((x) >> (s)) | ((x) << (32 - (s))))
00049
#endif
00050
00051 typedef uint8_t
byte;
00052
00053 typedef int8_t
javabyte;
00054 typedef int16_t
javashort;
00055 typedef int32_t
javaint;
00056 typedef int64_t
javalong;
00057
00058 typedef uint16_t
javachar;
00059
00060
#if (MP_WBITS == 64)
00061 typedef uint64_t
mpw;
00062 typedef uint32_t
mphw;
00063
#elif (MP_WBITS == 32)
00064
# if HAVE_UINT64_T
00065
# define HAVE_MPDW 1
00066
typedef uint64_t mpdw;
00067
# endif
00068
typedef uint32_t
mpw;
00069
typedef uint16_t
mphw;
00070
#else
00071
# error
00072
#endif
00073
00074
#endif