BeeCrypt 4.2.1
blowfishopt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2000, 2002, 2003 X-Way Rights BV
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
19
26#ifndef _BLOWFISHOPT_H
27#define _BLOWFISHOPT_H
28
29#include "beecrypt/beecrypt.h"
30#include "beecrypt/blowfish.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#if WIN32
37# if defined(_MSC_VER) && defined(_M_IX86)
38# define ASM_BLOWFISHENCRYPT
39# define ASM_BLOWFISHDECRYPT
40# elif __INTEL__ && __MWERKS__
41# define ASM_BLOWFISHENCRYPT
42# define ASM_BLOWFISHDECRYPT
43# endif
44#endif
45
46#if defined(__GNUC__)
47# if defined(OPTIMIZE_I586) || defined(OPTIMIZE_I686)
48# define ASM_BLOWFISHENCRYPT
49# define ASM_BLOWFISHDECRYPT
50# endif
51# if defined(OPTIMIZE_POWERPC)
52# define ASM_BLOWFISHENCRYPT
53# define ASM_BLOWFISHDECRYPT
54# endif
55#endif
56
57#if defined(__IBMC__)
58# if defined(OPTIMIZE_POWERPC)
59# define ASM_BLOWFISHENCRYPT
60# define ASM_BLOWFISHDECRYPT
61# endif
62#endif
63
64#if defined(__INTEL_COMPILER)
65# if defined(OPTIMIZE_I586) || defined(OPTIMIZE_I686)
66# define ASM_BLOWFISHENCRYPT
67# define ASM_BLOWFISHDECRYPT
68# endif
69#endif
70
71#if defined(__SUNPRO_C) || defined(__SUNPRO_CC)
72/* nothing here yet */
73#endif
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif
BeeCrypt API, headers.
Blowfish block cipher.