comparison mycrypt_custom.h @ 15:6362d3854bb4 libtomcrypt-orig

0.96 release of LibTomCrypt
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Jun 2004 14:07:21 +0000
parents 7faae8f46238
children 09ab3354aa21 5d99163f7e32
comparison
equal deleted inserted replaced
3:7faae8f46238 15:6362d3854bb4
7 7
8 #ifdef CRYPT 8 #ifdef CRYPT
9 #error mycrypt_custom.h should be included before mycrypt.h 9 #error mycrypt_custom.h should be included before mycrypt.h
10 #endif 10 #endif
11 11
12 /* macros for various libc functions */
12 #define XMALLOC malloc 13 #define XMALLOC malloc
13 #define XREALLOC realloc 14 #define XREALLOC realloc
14 #define XCALLOC calloc 15 #define XCALLOC calloc
15 #define XFREE free 16 #define XFREE free
16 #define XCLOCK clock 17 #define XCLOCK clock
17 #define XCLOCKS_PER_SEC CLOCKS_PER_SEC 18 #define XCLOCKS_PER_SEC CLOCKS_PER_SEC
19
20 /* Use small code where possible */
18 #define SMALL_CODE 21 #define SMALL_CODE
22
23 /* Enable self-test test vector checking */
19 #define LTC_TEST 24 #define LTC_TEST
25
26 /* clean the stack of functions which put private information on stack */
27 //#define CLEAN_STACK
28
29 /* disable all file related functions */
30 //#define NO_FILE
31
32 /* various ciphers */
20 #define BLOWFISH 33 #define BLOWFISH
21 #define RC2 34 #define RC2
22 #define RC5 35 #define RC5
23 #define RC6 36 #define RC6
24 #define SAFERP 37 #define SAFERP
25 #define RIJNDAEL 38 #define RIJNDAEL
26 #define XTEA 39 #define XTEA
27 #define TWOFISH 40 #define TWOFISH
28 #define TWOFISH_TABLES 41 #define TWOFISH_TABLES
42 //#define TWOFISH_ALL_TABLES
43 //#define TWOFISH_SMALL
29 #define DES 44 #define DES
30 #define CAST5 45 #define CAST5
31 #define NOEKEON 46 #define NOEKEON
32 #define SKIPJACK 47 #define SKIPJACK
48
49 /* modes of operation */
33 #define CFB 50 #define CFB
34 #define OFB 51 #define OFB
35 #define ECB 52 #define ECB
36 #define CBC 53 #define CBC
37 #define CTR 54 #define CTR
55
56 /* hash functions */
38 #define WHIRLPOOL 57 #define WHIRLPOOL
39 #define SHA512 58 #define SHA512
40 #define SHA384 59 #define SHA384
41 #define SHA256 60 #define SHA256
42 #define SHA224 61 #define SHA224
45 #define MD5 64 #define MD5
46 #define MD4 65 #define MD4
47 #define MD2 66 #define MD2
48 #define RIPEMD128 67 #define RIPEMD128
49 #define RIPEMD160 68 #define RIPEMD160
69
70 /* MAC functions */
50 #define HMAC 71 #define HMAC
51 #define OMAC 72 #define OMAC
52 #define PMAC 73 #define PMAC
74
75 /* Encrypt + Authenticate Modes */
53 #define EAX_MODE 76 #define EAX_MODE
54 #define OCB_MODE 77 #define OCB_MODE
78
79 /* Various tidbits of modern neatoness */
55 #define BASE64 80 #define BASE64
56 #define YARROW 81 #define YARROW
82 // which descriptor of AES to use?
83 // 0 = rijndael_enc 1 = aes_enc, 2 = rijndael [full], 3 = aes [full]
84 #define YARROW_AES 0
57 #define SPRNG 85 #define SPRNG
58 #define RC4 86 #define RC4
59 #define DEVRANDOM 87 #define DEVRANDOM
60 #define TRY_URANDOM_FIRST 88 #define TRY_URANDOM_FIRST
89
90 /* Public Key Neatoness */
61 #define MRSA 91 #define MRSA
92 #define RSA_TIMING // enable RSA side channel timing prevention
62 #define MDSA 93 #define MDSA
63 #define MDH 94 #define MDH
64 #define MECC 95 #define MECC
65 #define DH768 96 #define DH768
66 #define DH1024 97 #define DH1024
77 #define ECC256 108 #define ECC256
78 #define ECC384 109 #define ECC384
79 #define ECC521 110 #define ECC521
80 #define MPI 111 #define MPI
81 112
113 /* PKCS #1 and 5 stuff */
82 #define PKCS_1 114 #define PKCS_1
83 #define PKCS_5 115 #define PKCS_5
84
85 116
86 #include <mycrypt.h> 117 #include <mycrypt.h>
87 118
88 #endif 119 #endif
89 120