Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- a/libtomcrypt/src/headers/tomcrypt_dropbear.h Wed Mar 30 10:23:39 2022 +0800 +++ b/libtomcrypt/src/headers/tomcrypt_dropbear.h Wed Mar 30 11:44:04 2022 +0800 @@ -16,12 +16,6 @@ #if DROPBEAR_AES #define LTC_RIJNDAEL #endif -/* _TABLES tells it to use tables during setup, _SMALL means to use the smaller scheduled key format - * (saves 4KB of ram), _ALL_TABLES enables all tables during setup */ -#if DROPBEAR_TWOFISH -#define LTC_TWOFISH -#define LTC_TWOFISH_SMALL -#endif #if DROPBEAR_3DES #define LTC_DES @@ -56,7 +50,9 @@ #define LTC_SHA256 #endif +#if DROPBEAR_SHA1 #define LTC_SHA1 +#endif #if DROPBEAR_MD5 #define LTC_MD5