mirror of
https://github.com/clearml/dropbear
synced 2025-01-30 18:36:56 +00:00
Use faster primality testing in libtomcrypt
This can only be used if DSS is disabled
This commit is contained in:
parent
cdaf52aead
commit
0e70732e1e
@ -133,6 +133,10 @@ IMPORTANT: Some options will require "make clean" after changes */
|
||||
* is not recommended for new keys.
|
||||
* See: RSA_PRIV_FILENAME and DSS_PRIV_FILENAME */
|
||||
#define DROPBEAR_RSA 1
|
||||
/* RSA key generation will be faster with bundled libtommath
|
||||
* if DROPBEAR_DSS is disabled.
|
||||
* https://github.com/mkj/dropbear/issues/174#issuecomment-1267374858
|
||||
*/
|
||||
#define DROPBEAR_DSS 1
|
||||
/* ECDSA is significantly faster than RSA or DSS. Compiling in ECC
|
||||
* code (either ECDSA or ECDH) increases binary size - around 30kB
|
||||
|
@ -164,6 +164,15 @@
|
||||
#define DROPBEAR_RSA_SHA256 DROPBEAR_RSA
|
||||
#endif
|
||||
|
||||
/* Miller-Rabin primality testing is sufficient for RSA but not DSS.
|
||||
* It's a compile-time setting for libtommath, we can get a speedup
|
||||
* for key generation if DSS is disabled.
|
||||
* https://github.com/mkj/dropbear/issues/174#issuecomment-1267374858
|
||||
*/
|
||||
#ifndef DROPBEAR_DSS
|
||||
#define LTM_USE_ONLY_MR 1
|
||||
#endif
|
||||
|
||||
/* hashes which will be linked and registered */
|
||||
#define DROPBEAR_SHA1 (DROPBEAR_RSA_SHA1 || DROPBEAR_DSS \
|
||||
|| DROPBEAR_SHA1_HMAC || DROPBEAR_SHA1_96_HMAC \
|
||||
|
Loading…
Reference in New Issue
Block a user