aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_rsa.c
diff options
context:
space:
mode:
authorJeff Burdges <burdges@gnunet.org>2016-08-22 13:56:30 +0000
committerJeff Burdges <burdges@gnunet.org>2016-08-22 13:56:30 +0000
commit03551db989cb4417949a1fe1339d3788aa972bcc (patch)
tree1424b8491063bddcbf0227807f6a208ef9669f89 /src/util/crypto_rsa.c
parentfc3c65152a52aab6951b37e7d462aa9627a668a1 (diff)
downloadgnunet-03551db989cb4417949a1fe1339d3788aa972bcc.tar.gz
gnunet-03551db989cb4417949a1fe1339d3788aa972bcc.zip
Removed duplicate protection agaisnt Lenstra
Now libgcrypt 1.6.4, released 8 Sep 2015 , has its own protection against Lenstra's attack, added wtih commit c17f84bd02d7ee93845e92e20f6ddba814961588 dated 31 Aug 2015. Do not run GNUNet with an earlier libgcrypt now.
Diffstat (limited to 'src/util/crypto_rsa.c')
-rw-r--r--src/util/crypto_rsa.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index 1ed9a5ce9..c617354c9 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -842,6 +842,10 @@ rsa_sign_mpi (const struct GNUNET_CRYPTO_RsaPrivateKey *key,
842 } 842 }
843 843
844 /* verify signature (guards against Lenstra's attack with fault injection...) */ 844 /* verify signature (guards against Lenstra's attack with fault injection...) */
845 /* Removed because Lenstra protection was first added to libgcrypt 1.6.4
846 * with commit c17f84bd02d7ee93845e92e20f6ddba814961588. Do not run with
847 * an earlier libgcrypt. Or uncomment if you must. */
848 /*
845 public_key = GNUNET_CRYPTO_rsa_private_key_get_public (key); 849 public_key = GNUNET_CRYPTO_rsa_private_key_get_public (key);
846 if (0 != 850 if (0 !=
847 gcry_pk_verify (result, 851 gcry_pk_verify (result,
@@ -855,6 +859,7 @@ rsa_sign_mpi (const struct GNUNET_CRYPTO_RsaPrivateKey *key,
855 return NULL; 859 return NULL;
856 } 860 }
857 GNUNET_CRYPTO_rsa_public_key_free (public_key); 861 GNUNET_CRYPTO_rsa_public_key_free (public_key);
862 */
858 863
859 /* return signature */ 864 /* return signature */
860 gcry_sexp_release (data); 865 gcry_sexp_release (data);