gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet-scheme] 02/03: crypto/struct: Correct public key sizes.


From: gnunet
Subject: [gnunet-scheme] 02/03: crypto/struct: Correct public key sizes.
Date: Mon, 15 Aug 2022 15:57:40 +0200

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

maxime-devos pushed a commit to branch master
in repository gnunet-scheme.

commit b1e4d37e0e22ccf4f109b7961d89c195d4f94b21
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Mon Aug 15 15:20:22 2022 +0200

    crypto/struct: Correct public key sizes.
    
    * gnu/gnunet/crypto/struct.scm (/eddsa-public-key)[q]: Change from 64
    to 32.
    (/ecdsa-public-key)[q-y]: Likewise.
---
 gnu/gnunet/crypto/struct.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/gnunet/crypto/struct.scm b/gnu/gnunet/crypto/struct.scm
index ea1d2f8..a19b8b6 100644
--- a/gnu/gnunet/crypto/struct.scm
+++ b/gnu/gnunet/crypto/struct.scm
@@ -86,7 +86,7 @@ a format suitable for network transmission and EdDSA 
signatures.
 Refer to section 5.1.3 of rfc8032, for a thorough explanation of how this
 value maps to the x- and y-coordinates.")
        (properties '((c-type . GNUNET_CRYPTO_EddsaPublicKey)))
-       (field (q (u8vector 64))
+       (field (q (u8vector 32))
              (documentation "Point Q consists of a y-value mod p (256 bits);
 the x-value is always positive. The point is stored in Ed25519 standard
 compact format."))))
@@ -97,7 +97,7 @@ compact format."))))
        "Public ECC key (always for Curve25519) encoded in a format suitable
 for network transmission and ECDSA signatures.")
        (properties '((c-type . GNUNET_CRYPTO_EcdsaPublicKey)))
-       (field (q-y (u8vector 64))
+       (field (q-y (u8vector 32))
              (documentation
               "Q consists of an x- and a y-value, each mod p (256 bits), given
 here in affine coordinates and Ed25519 standard compact format."))))

-- 
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]