comparison libtomcrypt/src/headers/tomcrypt_dropbear.h @ 1916:3f4cdf839a1a

Make SHA1 optional, implement SHA256 fingerprints SHA256 is always compiled and only enable SHA1 when needed. Fingerprints are always SHA256: base64 format, md5 and sha1 are removed. dbrandom now uses sha256 its hash function.
author Matt Johnston <matt@ucc.asn.au>
date Wed, 30 Mar 2022 11:44:04 +0800
parents c2c0f43ff827
children
comparison
equal deleted inserted replaced
1915:13cb8cc1b0e4 1916:3f4cdf839a1a
13 /* Fewer entries needed */ 13 /* Fewer entries needed */
14 #define TAB_SIZE 5 14 #define TAB_SIZE 5
15 15
16 #if DROPBEAR_AES 16 #if DROPBEAR_AES
17 #define LTC_RIJNDAEL 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 18 #endif
25 19
26 #if DROPBEAR_3DES 20 #if DROPBEAR_3DES
27 #define LTC_DES 21 #define LTC_DES
28 #endif 22 #endif
54 48
55 #if DROPBEAR_SHA256 49 #if DROPBEAR_SHA256
56 #define LTC_SHA256 50 #define LTC_SHA256
57 #endif 51 #endif
58 52
53 #if DROPBEAR_SHA1
59 #define LTC_SHA1 54 #define LTC_SHA1
55 #endif
60 56
61 #if DROPBEAR_MD5 57 #if DROPBEAR_MD5
62 #define LTC_MD5 58 #define LTC_MD5
63 #endif 59 #endif
64 60