[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: GNS: Revert incorrect change hashing zty
From: |
gnunet |
Subject: |
[gnunet] branch master updated: GNS: Revert incorrect change hashing ztype |
Date: |
Mon, 03 Jul 2023 01:49:40 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new e8125d57d GNS: Revert incorrect change hashing ztype
e8125d57d is described below
commit e8125d57debdc6e12df8ec5a700e9a967fc4244c
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Mon Jul 3 01:49:24 2023 +0200
GNS: Revert incorrect change hashing ztype
---
src/gnsrecord/gnsrecord_crypto.c | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/gnsrecord/gnsrecord_crypto.c b/src/gnsrecord/gnsrecord_crypto.c
index 886a93ad8..384336c97 100644
--- a/src/gnsrecord/gnsrecord_crypto.c
+++ b/src/gnsrecord/gnsrecord_crypto.c
@@ -1056,7 +1056,6 @@ GNUNET_GNSRECORD_query_from_public_key (const struct
{
char *norm_label;
struct GNUNET_IDENTITY_PublicKey pd;
- ssize_t pd_len;
norm_label = GNUNET_GNSRECORD_string_normalize (label);
@@ -1068,10 +1067,8 @@ GNUNET_GNSRECORD_query_from_public_key (const struct
norm_label,
"gns",
&pd.ecdsa_key);
- pd_len = GNUNET_IDENTITY_public_key_get_length (&pd);
- GNUNET_assert (0 < pd_len);
- GNUNET_CRYPTO_hash (&pd,
- pd_len,
+ GNUNET_CRYPTO_hash (&pd.ecdsa_key,
+ sizeof (pd.ecdsa_key),
query);
break;
case GNUNET_GNSRECORD_TYPE_EDKEY:
@@ -1080,10 +1077,8 @@ GNUNET_GNSRECORD_query_from_public_key (const struct
norm_label,
"gns",
&(pd.eddsa_key));
- pd_len = GNUNET_IDENTITY_public_key_get_length (&pd);
- GNUNET_assert (0 < pd_len);
- GNUNET_CRYPTO_hash (&pd,
- pd_len,
+ GNUNET_CRYPTO_hash (&pd.eddsa_key,
+ sizeof (pd.eddsa_key),
query);
break;
default:
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: GNS: Revert incorrect change hashing ztype,
gnunet <=