Mercurial > dropbear
comparison libtomcrypt/src/headers/tomcrypt_dropbear.h @ 1476:8305ebe45940
Put Dropbear config in a separate file
Patch out MECC DER
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 09 Feb 2018 23:35:07 +0800 |
parents | |
children | 3a97f14c0235 |
comparison
equal
deleted
inserted
replaced
1475:59e66cdaf10f | 1476:8305ebe45940 |
---|---|
1 /* compile options depend on Dropbear options.h */ | |
2 #include "options.h" | |
3 | |
4 /* Dropbear config */ | |
5 | |
6 #define LTC_NOTHING | |
7 | |
8 /* Use small code where possible */ | |
9 #if DROPBEAR_SMALL_CODE | |
10 #define LTC_SMALL_CODE | |
11 #endif | |
12 | |
13 #if DROPBEAR_BLOWFISH | |
14 #define LTC_BLOWFISH | |
15 #endif | |
16 #if DROPBEAR_AES | |
17 #define LTC_RIJNDAEL | |
18 #endif | |
19 /* _TABLES tells it to use tables during setup, _SMALL means to use the smaller scheduled key format | |
20 * (saves 4KB of ram), _ALL_TABLES enables all tables during setup */ | |
21 #if DROPBEAR_TWOFISH | |
22 #define LTC_TWOFISH | |
23 #define LTC_TWOFISH_SMALL | |
24 #endif | |
25 | |
26 #if DROPBEAR_3DES | |
27 #define LTC_DES | |
28 #endif | |
29 | |
30 #if DROPBEAR_ENABLE_CTR_MODE | |
31 #define LTC_CBC_MODE | |
32 #endif | |
33 | |
34 #if DROPBEAR_ENABLE_CTR_MODE | |
35 #define LTC_CTR_MODE | |
36 #endif | |
37 | |
38 | |
39 #if DROPBEAR_SHA512 | |
40 #define LTC_SHA512 | |
41 #endif | |
42 | |
43 #if DROPBEAR_SHA384 | |
44 #define LTC_SHA384 | |
45 #endif | |
46 | |
47 #if DROPBEAR_SHA256 | |
48 #define LTC_SHA256 | |
49 #endif | |
50 | |
51 #define LTC_SHA1 | |
52 | |
53 #if DROPBEAR_MD5 | |
54 #define LTC_MD5 | |
55 #endif | |
56 | |
57 /* ECC */ | |
58 #if DROPBEAR_ECC | |
59 #define LTC_MECC | |
60 #define LTM_DESC | |
61 | |
62 /* use Shamir's trick for point mul (speeds up signature verification) */ | |
63 #define LTC_ECC_SHAMIR | |
64 | |
65 #if DROPBEAR_ECC_256 | |
66 #define LTC_ECC256 | |
67 #endif | |
68 #if DROPBEAR_ECC_384 | |
69 #define LTC_ECC384 | |
70 #endif | |
71 #if DROPBEAR_ECC_521 | |
72 #define LTC_ECC521 | |
73 #endif | |
74 | |
75 #endif /* DROPBEAR_ECC */ | |
76 | |
77 #define LTC_HMAC | |
78 #define LTC_HASH_HELPERS | |
79 | |
80 #define LTC_NO_TEST | |
81 | |
82 #define LTC_BASE64 | |
83 | |
84 /* end Dropbear config */ |