summaryrefslogtreecommitdiff
path: root/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/blowfishopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/blowfishopt.h')
-rwxr-xr-xutils/zenutils/libraries/beecrypt-4.1.2/beecrypt/blowfishopt.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/blowfishopt.h b/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/blowfishopt.h
new file mode 100755
index 0000000000..f38db94b52
--- /dev/null
+++ b/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/blowfishopt.h
@@ -0,0 +1,82 @@
1/*
2 * Copyright (c) 2000, 2002, 2003 Virtual Unlimited B.V.
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
20/*!\file blowfishopt.h
21 * \brief Blowfish block cipher, assembler-optimized routines, headers.
22 * \author Bob Deblier <bob.deblier@pandora.be>
23 * \ingroup BC_blowfish_m
24 */
25
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#undef ASM_BLOWFISHENCRYPT
76#undef ASM_BLOWFISHDECRYPT
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif