comparison sysoptions.h @ 1674:ba6fc7afe1c5

use sigtype where appropriate
author Matt Johnston <matt@ucc.asn.au>
date Mon, 06 Apr 2020 23:18:26 +0800
parents d32bcb5c557d
children 435cfb9ec96e
comparison
equal deleted inserted replaced
1668:49cb3cf4bd6f 1674:ba6fc7afe1c5
137 /* RSA can be vulnerable to timing attacks which use the time required for 137 /* RSA can be vulnerable to timing attacks which use the time required for
138 * signing to guess the private key. Blinding avoids this attack, though makes 138 * signing to guess the private key. Blinding avoids this attack, though makes
139 * signing operations slightly slower. */ 139 * signing operations slightly slower. */
140 #define DROPBEAR_RSA_BLINDING 1 140 #define DROPBEAR_RSA_BLINDING 1
141 141
142 #ifndef DROPBEAR_RSA_SHA1
143 #define DROPBEAR_RSA_SHA1 DROPBEAR_RSA
144 #endif
145 #ifndef DROPBEAR_RSA_SHA256
146 #define DROPBEAR_RSA_SHA256 DROPBEAR_RSA
147 #endif
148
142 /* hashes which will be linked and registered */ 149 /* hashes which will be linked and registered */
143 #define DROPBEAR_SHA256 ((DROPBEAR_SHA2_256_HMAC) || (DROPBEAR_ECC_256) \ 150 #define DROPBEAR_SHA256 ((DROPBEAR_SHA2_256_HMAC) || (DROPBEAR_ECC_256) \
144 || (DROPBEAR_CURVE25519) || (DROPBEAR_DH_GROUP14_SHA256)) 151 || (DROPBEAR_CURVE25519) || (DROPBEAR_DH_GROUP14_SHA256) \
152 || (DROPBEAR_RSA_SHA256))
145 #define DROPBEAR_SHA384 (DROPBEAR_ECC_384) 153 #define DROPBEAR_SHA384 (DROPBEAR_ECC_384)
146 /* LTC SHA384 depends on SHA512 */ 154 /* LTC SHA384 depends on SHA512 */
147 #define DROPBEAR_SHA512 ((DROPBEAR_SHA2_512_HMAC) || (DROPBEAR_ECC_521) \ 155 #define DROPBEAR_SHA512 ((DROPBEAR_SHA2_512_HMAC) || (DROPBEAR_ECC_521) \
148 || (DROPBEAR_SHA384) || (DROPBEAR_DH_GROUP16) \ 156 || (DROPBEAR_SHA384) || (DROPBEAR_DH_GROUP16) \
149 || (DROPBEAR_ED25519)) 157 || (DROPBEAR_ED25519))