# HG changeset patch
# User Matt Johnston <matt@ucc.asn.au>
# Date 1120828750 0
# Node ID ea9277442ef2e4e958b8047c5ec3395018f3166d
# Parent  1a52846ec11fdd5ff7ca7ddeea5e62f160c7de05
* move RSA_BLINDING to options.h

diff -r 1a52846ec11f -r ea9277442ef2 options.h
--- a/options.h	Thu Jun 02 22:53:18 2005 +0000
+++ b/options.h	Fri Jul 08 13:19:10 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
diff -r 1a52846ec11f -r ea9277442ef2 rsa.c
--- a/rsa.c	Thu Jun 02 22:53:18 2005 +0000
+++ b/rsa.c	Fri Jul 08 13:19:10 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 */