gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: add patch from Niibe Yutaka


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: add patch from Niibe Yutaka for #5328
Date: Mon, 28 May 2018 13:04:13 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new a46fff931 add patch from Niibe Yutaka for #5328
a46fff931 is described below

commit a46fff931d631a176f56547692b16ae32c89299b
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon May 28 13:04:11 2018 +0200

    add patch from Niibe Yutaka for
    #5328
---
 src/util/crypto_ecc.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index 1abf0fddc..8d9091b23 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -1281,6 +1281,16 @@ eddsa_d_to_a (gcry_mpi_t d)
                  gcry_mpi_print (GCRYMPI_FMT_USG,
                                 rawmpi, rawmpilen, &rawmpilen,
                                  d));
+  if (rawmpilen < 32)
+  {
+    memmove (rawmpi + 32 - rawmpilen,
+             rawmpi,
+             rawmpilen);
+    memset (rawmpi,
+            0,
+            32 - rawmpilen);
+    rawmpilen = 32;
+  }
   hvec[0].data = digest;
   hvec[0].off = 0;
   hvec[0].len = b > rawmpilen ? (b - rawmpilen) : 0;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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