From 9c4b0a6e2324857dc686396d9f375fe76917b54c Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 5 Sep 2002 19:04:47 +0000 Subject: [PATCH] slight optimization on rsa exponent use 2**16+1 rather than 2**16 + 2**(-1) svn:r99 --- trunk/src/common/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/common/crypto.c b/trunk/src/common/crypto.c index 956b4f47c2..0b1d3d2164 100644 --- a/trunk/src/common/crypto.c +++ b/trunk/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;