defines.h

Go to the documentation of this file.
00001 /***********************************************************************
00002 *
00003 * KRYPTOS - Educational software for teaching cryptography
00004 * For more information, see http://www.kryptosproject.org/
00005 * Submissions may be sent to kryptos@gmu.edu (see web site for details)
00006 * 
00007 * 
00008 * Copyright (c) 2002-2006 George Mason University
00009 * 
00010 * Permission is hereby granted, free of charge, to any person obtaining
00011 * a copy of this software and associated documentation files (the
00012 * "Software"), to deal in the Software without restriction, including
00013 * without limitation the rights to use, copy, modify, merge, publish,
00014 * distribute, sublicense, and/or sell copies of the Software, and to
00015 * permit persons to whom the Software is furnished to do so, subject
00016 * to the following conditions:
00017 *
00018 * The above copyright notice and this permission notice shall be
00019 * included in all copies or substantial portions of the Software.
00020 *
00021 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00022 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00023 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00024 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
00025 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
00026 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
00027 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00028 *
00029 ***********************************************************************/
00030 #ifndef __KRYPTOS_DEFINES_H
00031 #define __KRYPTOS_DEFINES_H
00032 
00033 /* File added 10/22/2004  -ps */
00034 
00035 /* Conditional/Special Builds */
00036 //#define NOAHS_HACK
00037 
00038 /* Operations/Directions */
00039 #define DIR_SENDER        1
00040 #define DIR_RECEIVER      2
00041 
00042 /* Operations */
00043 #define OP_SK_ENCRYPT     1
00044 #define OP_SK_DECRYPT     2
00045 #define OP_PK_ENCRYPT     3
00046 #define OP_PK_DECRYPT     4
00047 #define OP_SIGN           5
00048 #define OP_SIG_VERIFY     6
00049 #define OP_HASH           7
00050 #define OP_HASH_VERIFY    8
00051 #define OP_MAC_GENERATE   9
00052 #define OP_MAC_VERIFY     10
00053 
00054 /* Encryption Algorithms */
00055 #define ALG_3WAY          0
00056 #define ALG_BLOWFISH      1
00057 #define ALG_CAST          2
00058 #define ALG_DES           3
00059 #define ALG_DESX          4
00060 #define ALG_DIAMOND       5
00061 #define ALG_GOST          6
00062 #define ALG_IDEA          7
00063 #define ALG_LUBYRACK      8
00064 #define ALG_MARS          9
00065 #define ALG_MDC          10
00066 #define ALG_RC2          11
00067 #define ALG_RC5          12
00068 #define ALG_RC6          13
00069 #define ALG_AES          14
00070 #define ALG_SAFER        15
00071 #define ALG_SERPENT      16
00072 #define ALG_SHARK        17
00073 #define ALG_SKIPJACK     18
00074 #define ALG_SQUARE       19
00075 #define ALG_TEA          20
00076 #define ALG_3DES         21
00077 #define ALG_TWOFISH      22
00078 
00079 /* Block Cipher Modes */
00080 #define MODE_ECB          0
00081 #define MODE_CBC          1
00082 #define MODE_CBC_CTS      2
00083 #define MODE_CFB          3
00084 #define MODE_CTR          4
00085 #define MODE_OFB          5
00086 #define MODE_OCB          6
00087 
00088 /* Hashing Algorithms */
00089 #define KRYPTOS_HASH_HAVAL       0
00090 #define KRYPTOS_HASH_MD2         1
00091 #define KRYPTOS_HASH_MD4         2
00092 #define KRYPTOS_HASH_MD5         3
00093 #define KRYPTOS_HASH_PANAMA      4
00094 #define KRYPTOS_HASH_RIPEMD160   5
00095 #define KRYPTOS_HASH_SHA         6
00096 #define KRYPTOS_HASH_SHA1        6
00097 #define KRYPTOS_HASH_SHA256      7
00098 #define KRYPTOS_HASH_SHA384      8
00099 #define KRYPTOS_HASH_SHA512      9
00100 #define KRYPTOS_HASH_TIGER      10
00101 
00102 /* MAC Algorithms */
00103 #define MAC_MD5MAC      0
00104 #define MAC_HMAC        2
00105 
00106 /* Key Strengths */
00107 #define KEYSTRENGTH_WEAK             0
00108 #define KEYSTRENGTH_SEMIWEAK     1
00109 #define KEYSTRENGTH_STRONG       2
00110 
00111 
00112 #endif

Generated on Sun Dec 17 14:54:15 2006 for Kryptos by  doxygen 1.5.1-p1