From 6ec7797ac937cb7e903688d5743c7debeda115fc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 12 Apr 2019 22:39:08 +0200 Subject: [PATCH] new key, new HELLO --- ...TBW3FGK6B0M5QXWT9WYNZ45H5MCV4HY7ST64Q8T9F0 | Bin 208 -> 0 bytes contrib/hellos/Makefile.am | 2 +- ...1N1SQCE5TXF93ED6S6JY311K0QT86G9WJC68F6XVZ0 | Bin 0 -> 304 bytes src/include/gnunet_common.h | 21 ++++++++++++++++++ src/include/gnunet_crypto_lib.h | 19 ---------------- 5 files changed, 22 insertions(+), 20 deletions(-) delete mode 100644 contrib/hellos/DSTJBRRKZ8TBW3FGK6B0M5QXWT9WYNZ45H5MCV4HY7ST64Q8T9F0 create mode 100644 contrib/hellos/Y924NSHMMZ1N1SQCE5TXF93ED6S6JY311K0QT86G9WJC68F6XVZ0 diff --git a/contrib/hellos/DSTJBRRKZ8TBW3FGK6B0M5QXWT9WYNZ45H5MCV4HY7ST64Q8T9F0 b/contrib/hellos/DSTJBRRKZ8TBW3FGK6B0M5QXWT9WYNZ45H5MCV4HY7ST64Q8T9F0 deleted file mode 100644 index b8cbcf7d88676645c7dd540bd096fa2868e6204e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 208 zcmZR$z#zx~1bL;ZkA;7k?Bo3~a~hY}-)EE0hdOvasdN_*ncPh z=}=(wS)jnk;KZal;s3vE-UJRcOf?{NNPrQlh6~x8HDV0d#f5Q*i{KC!#33$(UA%d| Smn$~+0L7iLiPtlL%mDz!(tT6_ literal 0 HcmV?d00001 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). -- 2.25.1