[or-cvs] slight optimization on rsa exponent
Roger Dingledine
arma at seul.org
Thu Sep 5 19:04:50 UTC 2002
Update of /home/or/cvsroot/src/common
In directory moria.seul.org:/home/arma/work/onion/cvs/src/common
Modified Files:
crypto.c
Log Message:
slight optimization on rsa exponent
use 2**16+1 rather than 2**16 + 2**(-1)
Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/src/common/crypto.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- crypto.c 3 Sep 2002 19:16:02 -0000 1.5
+++ crypto.c 5 Sep 2002 19:04:47 -0000 1.6
@@ -213,7 +213,7 @@
case CRYPTO_PK_RSA:
if (env->key)
RSA_free((RSA *)env->key);
- env->key = (unsigned char *)RSA_generate_key(1024,65535, NULL, NULL);
+ env->key = (unsigned char *)RSA_generate_key(1024,65537, NULL, NULL);
if (!env->key)
return -1;
break;
More information about the tor-commits
mailing list