gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -fix test_crypto ftbfs


From: gnunet
Subject: [taler-exchange] branch master updated: -fix test_crypto ftbfs
Date: Mon, 07 Feb 2022 10:58:25 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 3ed39955 -fix test_crypto ftbfs
3ed39955 is described below

commit 3ed39955b60b75e93652ebf233f3f73ddc5d145d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Feb 7 10:58:23 2022 +0100

    -fix test_crypto ftbfs
---
 src/util/test_crypto.c | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c
index 218b593a..d930b773 100644
--- a/src/util/test_crypto.c
+++ b/src/util/test_crypto.c
@@ -42,6 +42,10 @@ test_high_level (void)
   union TALER_DenominationBlindingKeyP bks2;
   struct TALER_CoinSpendPrivateKeyP coin_priv1;
   struct TALER_CoinSpendPrivateKeyP coin_priv2;
+  struct TALER_PlanchetSecretsP ps1;
+  struct TALER_PlanchetSecretsP ps2;
+  struct TALER_ExchangeWithdrawValues alg1;
+  struct TALER_ExchangeWithdrawValues alg2;
 
   GNUNET_CRYPTO_eddsa_key_create (&coin_priv.eddsa_priv);
   GNUNET_CRYPTO_eddsa_key_get_public (&coin_priv.eddsa_priv,
@@ -66,12 +70,24 @@ test_high_level (void)
                                 &secret2));
   TALER_planchet_setup_refresh (&secret,
                                 0,
-                                &coin_priv1,
-                                &bks1);
+                                &ps1);
+  alg1.cipher = TALER_DENOMINATION_RSA;
+  TALER_planchet_setup_coin_priv (&ps1,
+                                  &alg1,
+                                  &coin_priv1);
+  TALER_planchet_blinding_secret_create (&ps1,
+                                         &alg1,
+                                         &bks1);
+  alg2.cipher = TALER_DENOMINATION_RSA;
   TALER_planchet_setup_refresh (&secret,
                                 1,
-                                &coin_priv2,
-                                &bks2);
+                                &ps2);
+  TALER_planchet_setup_coin_priv (&ps1,
+                                  &alg2,
+                                  &coin_priv2);
+  TALER_planchet_blinding_secret_create (&ps2,
+                                         &alg2,
+                                         &bks2);
   GNUNET_assert (0 !=
                  GNUNET_memcmp (&coin_priv1,
                                 &coin_priv2));

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