diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-17 16:40:19 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-17 16:40:19 +0100 |
commit | 5d52f126f510a223d371459f17d5aaa46e9dfe49 (patch) | |
tree | c9776ec0110b8874a7f0d4c2ea96a98750c61449 /src/include/gnunet_crypto_lib.h | |
parent | c87a389a4f842c20383d8619120b188e104cf64a (diff) | |
download | gnunet-5d52f126f510a223d371459f17d5aaa46e9dfe49.tar.gz gnunet-5d52f126f510a223d371459f17d5aaa46e9dfe49.zip |
introducing the short map
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 8002b7710..b6875c5cf 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -66,7 +66,7 @@ struct GNUNET_PeerIdentity; | |||
66 | 66 | ||
67 | 67 | ||
68 | /** | 68 | /** |
69 | * @brief A 512-bit hashcode | 69 | * @brief A 512-bit hashcode. These are the default length for GNUnet, using SHA-512. |
70 | */ | 70 | */ |
71 | struct GNUNET_HashCode | 71 | struct GNUNET_HashCode |
72 | { | 72 | { |
@@ -74,6 +74,17 @@ struct GNUNET_HashCode | |||
74 | }; | 74 | }; |
75 | 75 | ||
76 | 76 | ||
77 | |||
78 | /** | ||
79 | * @brief A 256-bit hashcode. Used under special conditions, like when space | ||
80 | * is critical and security is not impacted by it. | ||
81 | */ | ||
82 | struct GNUNET_ShortHashCode | ||
83 | { | ||
84 | uint32_t bits[256 / 8 / sizeof (uint32_t)]; /* = 8 */ | ||
85 | }; | ||
86 | |||
87 | |||
77 | /** | 88 | /** |
78 | * Maximum length of an ECC signature. | 89 | * Maximum length of an ECC signature. |
79 | * Note: round up to multiple of 8 minus 2 for alignment. | 90 | * Note: round up to multiple of 8 minus 2 for alignment. |