|
@@ -256,6 +256,27 @@ extern "C"
|
|
|
|
|
|
GNUNET_NETWORK_STRUCT_BEGIN
|
|
|
|
|
|
+/**
|
|
|
+ * @brief A 512-bit hashcode. These are the default length for GNUnet, using SHA-512.
|
|
|
+ */
|
|
|
+struct GNUNET_HashCode
|
|
|
+{
|
|
|
+ uint32_t bits[512 / 8 / sizeof (uint32_t)]; /* = 16 */
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * @brief A 256-bit hashcode. Used under special conditions, like when space
|
|
|
+ * is critical and security is not impacted by it.
|
|
|
+ */
|
|
|
+struct GNUNET_ShortHashCode
|
|
|
+{
|
|
|
+ uint32_t bits[256 / 8 / sizeof (uint32_t)]; /* = 8 */
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* Header for all communications.
|
|
|
*/
|