gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet-scheme] 172/324: crypto/struct: Define /ecc-signature-purpose.


From: gnunet
Subject: [gnunet-scheme] 172/324: crypto/struct: Define /ecc-signature-purpose.
Date: Tue, 21 Sep 2021 13:23:32 +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 ed8f83dacdbb5d95633e93ac4ef2ff9c521978b0
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Fri Aug 13 12:07:00 2021 +0200

    crypto/struct: Define /ecc-signature-purpose.
    
    * gnu/gnunet/util/struct.scm (/ecc-signature-purpose): New variable.
---
 gnu/gnunet/crypto/struct.scm | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/gnu/gnunet/crypto/struct.scm b/gnu/gnunet/crypto/struct.scm
index 7a2812e..7e728c8 100644
--- a/gnu/gnunet/crypto/struct.scm
+++ b/gnu/gnunet/crypto/struct.scm
@@ -52,11 +52,13 @@
          /ecdhe-public-key /ecdhe-private-key
          /ecdsa-private-key /eddsa-private-key
          /symmetric-session-key
-         /challenge-nonce-p)
+         /challenge-nonce-p
+         /ecc-signature-purpose)
   (import (only (gnu gnunet hashcode struct) /hashcode:256)
          (only (gnu gnunet netstruct syntactic)
                define-type structure/packed)
-         (only (gnu gnunet netstruct procedural) u8vector)
+         (only (gnu gnunet netstruct procedural)
+               u8vector u32/big)
          (only (rnrs base) begin))
   (begin
     (define-type /eddsa-signature
@@ -153,4 +155,13 @@ here in affine coordinates and Ed25519 standard compact 
format."))))
        (synopsis "Type of a nonce used for challenges")
        (field (value /hashcode:256)
              (synopsis
-              "The value of the nonce.  Note that this is NOT a hash."))))))
+              "The value of the nonce.  Note that this is NOT a hash."))))
+
+    (define-type /ecc-signature-purpose
+      (structure/packed
+       (synopsis "Header indicating what an ECC signature signs")
+       (field (size u32/big)
+             (synopsis "The number of bytes the signature signs"))
+       (field (purpose u32/big)
+             (synopsis "What does this signature vouch for?"))))))
+

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