mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
slight optimization on rsa exponent
use 2**16+1 rather than 2**16 + 2**(-1) svn:r99
This commit is contained in:
parent
0ea53fc312
commit
f9f3e2f120
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue