diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-12 22:39:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-12 22:39:08 +0200 |
commit | 6ec7797ac937cb7e903688d5743c7debeda115fc (patch) | |
tree | 703896c00300230323916a7244853088aee21576 /src/include/gnunet_common.h | |
parent | 10a9ae85edd4f0de7f06b96ed839d576a724b4a4 (diff) | |
download | gnunet-6ec7797ac937cb7e903688d5743c7debeda115fc.tar.gz gnunet-6ec7797ac937cb7e903688d5743c7debeda115fc.zip |
new key, new HELLO
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r-- | src/include/gnunet_common.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 94ecd06f8..2c40aef79 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -257,6 +257,27 @@ extern "C" | |||
257 | GNUNET_NETWORK_STRUCT_BEGIN | 257 | GNUNET_NETWORK_STRUCT_BEGIN |
258 | 258 | ||
259 | /** | 259 | /** |
260 | * @brief A 512-bit hashcode. These are the default length for GNUnet, using SHA-512. | ||
261 | */ | ||
262 | struct GNUNET_HashCode | ||
263 | { | ||
264 | uint32_t bits[512 / 8 / sizeof (uint32_t)]; /* = 16 */ | ||
265 | }; | ||
266 | |||
267 | |||
268 | |||
269 | /** | ||
270 | * @brief A 256-bit hashcode. Used under special conditions, like when space | ||
271 | * is critical and security is not impacted by it. | ||
272 | */ | ||
273 | struct GNUNET_ShortHashCode | ||
274 | { | ||
275 | uint32_t bits[256 / 8 / sizeof (uint32_t)]; /* = 8 */ | ||
276 | }; | ||
277 | |||
278 | |||
279 | |||
280 | /** | ||
260 | * Header for all communications. | 281 | * Header for all communications. |
261 | */ | 282 | */ |
262 | struct GNUNET_MessageHeader | 283 | struct GNUNET_MessageHeader |