aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-28 17:02:19 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-28 17:02:19 +0000
commit8ec56983556915364a1f35dd8bacadbcbcf54fb0 (patch)
tree257f20a43ad0344173b8f3423f3dcf11ae7eb830 /src/include/gnunet_crypto_lib.h
parent426c12fc1188f90db6969f48efec0163fa805dc5 (diff)
downloadgnunet-8ec56983556915364a1f35dd8bacadbcbcf54fb0.tar.gz
gnunet-8ec56983556915364a1f35dd8bacadbcbcf54fb0.zip
-ecc signing working
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index ff7bffdbb..1e2af8925 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -91,16 +91,15 @@ enum GNUNET_CRYPTO_Quality
91/** 91/**
92 * Length of a hash value 92 * Length of a hash value
93 */ 93 */
94#define GNUNET_CRYPTO_HASH_LENGTH 512/8 94#define GNUNET_CRYPTO_HASH_LENGTH (512/8)
95 95
96/** 96/**
97 * FIXME: what is an acceptable value here? 97 * Maximum length of an ECC signature.
98 * Note: round to multiple of 8 minus 2. 98 * Note: round up to multiple of 8 minus 2 for alignment.
99 */ 99 */
100#define GNUNET_CRYPTO_ECC_SIGNATURE_DATA_ENCODING_LENGTH 138 100#define GNUNET_CRYPTO_ECC_SIGNATURE_DATA_ENCODING_LENGTH 190
101 101
102/** 102/**
103 * FIXME: what is an acceptable value here?
104 * Maximum length of the public key (q-point, Q = dP) when encoded. 103 * Maximum length of the public key (q-point, Q = dP) when encoded.
105 */ 104 */
106#define GNUNET_CRYPTO_ECC_MAX_PUBLIC_KEY_LENGTH 140 105#define GNUNET_CRYPTO_ECC_MAX_PUBLIC_KEY_LENGTH 140