summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-04-12 22:39:08 +0200
committerChristian Grothoff <christian@grothoff.org>2019-04-12 22:39:08 +0200
commit6ec7797ac937cb7e903688d5743c7debeda115fc (patch)
tree703896c00300230323916a7244853088aee21576 /src
parent10a9ae85edd4f0de7f06b96ed839d576a724b4a4 (diff)
new key, new HELLO
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_common.h21
-rw-r--r--src/include/gnunet_crypto_lib.h19
2 files changed, 21 insertions, 19 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"
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.
*/
struct GNUNET_MessageHeader
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index c6ae943b9..257fee48d 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -51,25 +51,6 @@ extern "C"
#endif
#endif
-/**
- * @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 */
-};
-
/**
* The identity of the host (wraps the signing key of the peer).