aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2002-09-05 19:04:47 +0000
committerRoger Dingledine <arma@torproject.org>2002-09-05 19:04:47 +0000
commitf9f3e2f120cae011a7363db11160fd375b66ce1c (patch)
tree5235f6bb076bdecafeee226cc91107bfa838f991 /src
parent0ea53fc312412a8b4f84ec5a05b2d707ec930841 (diff)
downloadtor-f9f3e2f120cae011a7363db11160fd375b66ce1c.tar
tor-f9f3e2f120cae011a7363db11160fd375b66ce1c.tar.gz
slight optimization on rsa exponent
use 2**16+1 rather than 2**16 + 2**(-1) svn:r99
Diffstat (limited to 'src')
-rw-r--r--src/common/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 956b4f47c..0b1d3d216 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -213,7 +213,7 @@ int crypto_pk_generate_key(crypto_pk_env_t *env)
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;