gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: IDENTITY: Fix wrong key construction for


From: gnunet
Subject: [gnunet] branch master updated: IDENTITY: Fix wrong key construction for anonymous ECDSA identity
Date: Tue, 09 Mar 2021 18:28:10 +0100

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 0b2c0f22f IDENTITY: Fix wrong key construction for anonymous ECDSA 
identity
0b2c0f22f is described below

commit 0b2c0f22fa516e101874d8ee7c2cdc7113da418a
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Tue Mar 9 18:26:28 2021 +0100

    IDENTITY: Fix wrong key construction for anonymous ECDSA identity
---
 src/util/crypto_ecc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index bc58142c2..7110a2c4d 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -476,6 +476,10 @@ GNUNET_CRYPTO_ecdsa_key_get_anonymous ()
   GNUNET_CRYPTO_mpi_print_unsigned (anonymous.d,
                                     sizeof(anonymous.d),
                                     GCRYMPI_CONST_ONE);
+  anonymous.d[0] &= 248;
+  anonymous.d[31] &= 127;
+  anonymous.d[31] |= 64;
+
   once = 1;
   return &anonymous;
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]