From: Christian Grothoff Date: Fri, 12 Apr 2019 20:39:08 +0000 (+0200) Subject: new key, new HELLO X-Git-Tag: v0.11.4~207 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6ec7797ac937cb7e903688d5743c7debeda115fc;p=oweals%2Fgnunet.git new key, new HELLO --- diff --git a/contrib/hellos/DSTJBRRKZ8TBW3FGK6B0M5QXWT9WYNZ45H5MCV4HY7ST64Q8T9F0 b/contrib/hellos/DSTJBRRKZ8TBW3FGK6B0M5QXWT9WYNZ45H5MCV4HY7ST64Q8T9F0 deleted file mode 100644 index b8cbcf7d8..000000000 Binary files a/contrib/hellos/DSTJBRRKZ8TBW3FGK6B0M5QXWT9WYNZ45H5MCV4HY7ST64Q8T9F0 and /dev/null differ diff --git a/contrib/hellos/Makefile.am b/contrib/hellos/Makefile.am index 2ef785b27..d2fc6b89e 100644 --- a/contrib/hellos/Makefile.am +++ b/contrib/hellos/Makefile.am @@ -1,6 +1,6 @@ pkghellodir= $(pkgdatadir)/hellos pkghello_DATA = \ - DSTJBRRKZ8TBW3FGK6B0M5QXWT9WYNZ45H5MCV4HY7ST64Q8T9F0 + Y924NSHMMZ1N1SQCE5TXF93ED6S6JY311K0QT86G9WJC68F6XVZ0 EXTRA_DIST = $(pkghello_DATA) diff --git a/contrib/hellos/Y924NSHMMZ1N1SQCE5TXF93ED6S6JY311K0QT86G9WJC68F6XVZ0 b/contrib/hellos/Y924NSHMMZ1N1SQCE5TXF93ED6S6JY311K0QT86G9WJC68F6XVZ0 new file mode 100644 index 000000000..eeb6a15f7 Binary files /dev/null and b/contrib/hellos/Y924NSHMMZ1N1SQCE5TXF93ED6S6JY311K0QT86G9WJC68F6XVZ0 differ 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 @@ -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. */ 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).