changeset 217:29f8b18cf794

merge of 197e1bd25c1741218fbe0d73a1e37d4082054216 and 4dc12a3e22d2e0c63f65a9d48b07b37db7567899
author Matt Johnston <matt@ucc.asn.au>
date Fri, 08 Jul 2005 13:19:20 +0000
parents aad4b3f58556 (current diff) ea9277442ef2 (diff)
children 654bc8327787
files
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/options.h	Fri Jul 08 11:32:09 2005 +0000
+++ b/options.h	Fri Jul 08 13:19:20 2005 +0000
@@ -90,6 +90,11 @@
 #define DROPBEAR_RSA
 #define DROPBEAR_DSS
 
+/* RSA can be vulnerable to timing attacks which use the time required for
+ * signing to guess the private key. Blinding avoids this attack, though makes
+ * signing operations slightly slower. */
+#define RSA_BLINDING
+
 /* Define DSS_PROTOK to use PuTTY's method of generating the value k for dss,
  * rather than just from the random byte source. Undefining this will save you
  * ~4k in binary size with static uclibc, but your DSS hostkey could be exposed
--- a/rsa.c	Fri Jul 08 11:32:09 2005 +0000
+++ b/rsa.c	Fri Jul 08 13:19:20 2005 +0000
@@ -275,7 +275,6 @@
 
 	/* the actual signing of the padded data */
 
-#define RSA_BLINDING
 #ifdef RSA_BLINDING
 
 	/* With blinding, s = (r^(-1))((em)*r^e)^d mod n */