Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

beecrypt.api.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2001, 2002 Virtual Unlimited B.V.
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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

Generated on Wed Mar 24 13:56:53 2004 for BeeCrypt by doxygen 1.3.6