diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-07 13:31:28 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-07 13:31:28 +0200 |
commit | 1e4d20a5831ba92a27d00e188333c4c310568fab (patch) | |
tree | 6e6ad0c652429548cf54c82f575df77695d9d7cc /lib | |
parent | 37689ff93340703204cfaa8b44ebe398677d88d5 (diff) | |
download | gnutls-1e4d20a5831ba92a27d00e188333c4c310568fab.tar.gz |
Use the same "e" for RSA as libgcrypt. It's the fastest choice.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nettle/pk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c index b264afd491..95cba4fc23 100644 --- a/lib/nettle/pk.c +++ b/lib/nettle/pk.c @@ -454,8 +454,10 @@ int ret, i; rsa_public_key_init(&pub); rsa_private_key_init(&priv); + + _gnutls_mpi_set_ui(&pub.e, 65537); - ret = rsa_generate_keypair (&pub, &priv, NULL, rnd_func, NULL, NULL, level, 64); + ret = rsa_generate_keypair (&pub, &priv, NULL, rnd_func, NULL, NULL, level, 0); if (ret != 1) { gnutls_assert(); return GNUTLS_E_INTERNAL_ERROR; |