Explorar el Código

slight optimization on rsa exponent

use 2**16+1 rather than 2**16 + 2**(-1)


svn:r99
Roger Dingledine hace 22 años
padre
commit
f9f3e2f120
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/common/crypto.c

+ 1 - 1
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;