gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: more test vectors


From: gnunet
Subject: [taler-exchange] branch master updated: more test vectors
Date: Thu, 28 Nov 2019 00:26:36 +0100

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

dold pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 785f5fb7 more test vectors
785f5fb7 is described below

commit 785f5fb7dd5f8e4aa0258e3e72f519c77942cb7d
Author: Florian Dold <address@hidden>
AuthorDate: Thu Nov 28 00:26:32 2019 +0100

    more test vectors
---
 src/exchange-tools/taler-exchange-tvg.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/exchange-tools/taler-exchange-tvg.c 
b/src/exchange-tools/taler-exchange-tvg.c
index 366ef7cb..55e658fc 100644
--- a/src/exchange-tools/taler-exchange-tvg.c
+++ b/src/exchange-tools/taler-exchange-tvg.c
@@ -109,6 +109,10 @@ run (void *cls,
     data.purpose.size = htonl (sizeof (struct TALER_ProposalDataPS));
     GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_sign (priv, &data.purpose,
                                                           &sig));
+    GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_verify (0,
+                                                            &data.purpose,
+                                                            &sig,
+                                                            &pub));
 
     printf ("eddsa sig:\n");
     display_data ("  priv", priv, sizeof (struct
@@ -140,6 +144,7 @@ run (void *cls,
     display_data ("  salt", salt, strlen (salt));
     display_data ("  ikm", ikm, strlen (ikm));
     display_data ("  ctx", ctx, strlen (ctx));
+    printf ("  out_len %u\n", (unsigned int) out_len);
     display_data ("  out", out, out_len);
   }
   {
@@ -159,10 +164,10 @@ run (void *cls,
                                                       
GNUNET_CRYPTO_EcdhePrivateKey));
     display_data ("  pub_ecdhe", &pub_ecdhe, sizeof (struct
                                                      
GNUNET_CRYPTO_EcdhePublicKey));
-    display_data ("  priv_ecdhe", priv_ecdhe, sizeof (struct
+    display_data ("  priv_eddsa", priv_eddsa, sizeof (struct
                                                       
GNUNET_CRYPTO_EddsaPrivateKey));
-    display_data ("  pub_ecdhe", &pub_ecdhe, sizeof (struct
-                                                     
GNUNET_CRYPTO_EcdhePublicKey));
+    display_data ("  pub_eddsa", &pub_eddsa, sizeof (struct
+                                                     
GNUNET_CRYPTO_EddsaPublicKey));
     display_data ("  key_material", &key_material, sizeof (struct
                                                            GNUNET_HashCode));
   }

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



reply via email to

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