gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26302 - in gnunet/src: include util


From: gnunet
Subject: [GNUnet-SVN] r26302 - in gnunet/src: include util
Date: Mon, 4 Mar 2013 15:26:56 +0100

Author: grothoff
Date: 2013-03-04 15:26:56 +0100 (Mon, 04 Mar 2013)
New Revision: 26302

Modified:
   gnunet/src/include/gnunet_crypto_lib.h
   gnunet/src/include/gnunet_testing_lib.h
   gnunet/src/util/crypto_ecc.c
Log:
-go to more sane ECC curve to be more DoS-resistant

Modified: gnunet/src/include/gnunet_crypto_lib.h
===================================================================
--- gnunet/src/include/gnunet_crypto_lib.h      2013-03-04 14:24:49 UTC (rev 
26301)
+++ gnunet/src/include/gnunet_crypto_lib.h      2013-03-04 14:26:56 UTC (rev 
26302)
@@ -97,12 +97,12 @@
  * Maximum length of an ECC signature.
  * Note: round up to multiple of 8 minus 2 for alignment.
  */
-#define GNUNET_CRYPTO_ECC_SIGNATURE_DATA_ENCODING_LENGTH 190
+#define GNUNET_CRYPTO_ECC_SIGNATURE_DATA_ENCODING_LENGTH 126
 
 /**
  * Maximum length of the public key (q-point, Q = dP) when encoded.
  */
-#define GNUNET_CRYPTO_ECC_MAX_PUBLIC_KEY_LENGTH 140
+#define GNUNET_CRYPTO_ECC_MAX_PUBLIC_KEY_LENGTH 76
 
 
 /**

Modified: gnunet/src/include/gnunet_testing_lib.h
===================================================================
--- gnunet/src/include/gnunet_testing_lib.h     2013-03-04 14:24:49 UTC (rev 
26301)
+++ gnunet/src/include/gnunet_testing_lib.h     2013-03-04 14:26:56 UTC (rev 
26302)
@@ -50,7 +50,7 @@
  * curves (rounded up to the next full KB to make IO nicer); it is NOT
  * the number of bits in the key.
  */
-#define GNUNET_TESTING_HOSTKEYFILESIZE 2048
+#define GNUNET_TESTING_HOSTKEYFILESIZE 1024
 
 /**
  * Handle for a system on which GNUnet peers are executed;

Modified: gnunet/src/util/crypto_ecc.c
===================================================================
--- gnunet/src/util/crypto_ecc.c        2013-03-04 14:24:49 UTC (rev 26301)
+++ gnunet/src/util/crypto_ecc.c        2013-03-04 14:26:56 UTC (rev 26302)
@@ -30,7 +30,7 @@
 
 #define EXTRA_CHECKS ALLOW_EXTRA_CHECKS 
 
-#define CURVE "NIST P-521"
+#define CURVE "NIST P-256"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]