]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
slight optimization on rsa exponent
authorRoger Dingledine <arma@torproject.org>
Thu, 5 Sep 2002 19:04:47 +0000 (19:04 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 5 Sep 2002 19:04:47 +0000 (19:04 +0000)
use 2**16+1 rather than 2**16 + 2**(-1)

svn:r99

src/common/crypto.c

index 956b4f47c2cad9ecd8956de58b4bfcd510bcf2bd..0b1d3d2164ad011932373c5b155742a72ad09bd3 100644 (file)
@@ -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;