gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] 28/37: -scope needed


From: gnunet
Subject: [taler-exchange] 28/37: -scope needed
Date: Fri, 04 Feb 2022 16:53:58 +0100

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

gian-demarmels pushed a commit to branch master
in repository exchange.

commit ea97729ba891dc94ed2323aba01b15ca8e6a52d4
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Jan 13 19:30:20 2022 +0100

    -scope needed
---
 src/util/crypto.c | 52 +++++++++++++++++++++++++++-------------------------
 1 file changed, 27 insertions(+), 25 deletions(-)

diff --git a/src/util/crypto.c b/src/util/crypto.c
index e64547f0..3e759e71 100644
--- a/src/util/crypto.c
+++ b/src/util/crypto.c
@@ -352,33 +352,35 @@ TALER_planchet_to_coin (const struct 
TALER_DenominationPublicKey *dk,
     }
     break;
   case TALER_DENOMINATION_CS:
-    struct GNUNET_CRYPTO_CsC c[2];
-    struct GNUNET_CRYPTO_CsBlindingSecret bs[2];
-    struct TALER_DenominationCsPublicR r_pub_blind;
-
-    GNUNET_CRYPTO_cs_blinding_secrets_derive (&ps->blinding_key.nonce, bs);
-
-    GNUNET_CRYPTO_cs_calc_blinded_c (bs,
-                                     alg_values->details.cs_values.r_pub.r_pub,
-                                     &dk->details.cs_public_key,
-                                     &c_hash->hash,
-                                     sizeof(struct GNUNET_HashCode),
-                                     c,
-                                     r_pub_blind.r_pub);
-
-    sig.details.cs_signature.r_point
-      = r_pub_blind.r_pub[blind_sig->details.blinded_cs_answer.b];
-
-    if (GNUNET_OK !=
-        TALER_denom_sig_unblind (&sig,
-                                 blind_sig,
-                                 &ps->blinding_key,
-                                 dk))
     {
-      GNUNET_break_op (0);
-      return GNUNET_SYSERR;
+      struct GNUNET_CRYPTO_CsC c[2];
+      struct GNUNET_CRYPTO_CsBlindingSecret bs[2];
+      struct TALER_DenominationCsPublicR r_pub_blind;
+
+      GNUNET_CRYPTO_cs_blinding_secrets_derive (&ps->blinding_key.nonce, bs);
+
+      GNUNET_CRYPTO_cs_calc_blinded_c (bs,
+                                       
alg_values->details.cs_values.r_pub.r_pub,
+                                       &dk->details.cs_public_key,
+                                       &c_hash->hash,
+                                       sizeof(struct GNUNET_HashCode),
+                                       c,
+                                       r_pub_blind.r_pub);
+
+      sig.details.cs_signature.r_point
+        = r_pub_blind.r_pub[blind_sig->details.blinded_cs_answer.b];
+
+      if (GNUNET_OK !=
+          TALER_denom_sig_unblind (&sig,
+                                   blind_sig,
+                                   &ps->blinding_key,
+                                   dk))
+      {
+        GNUNET_break_op (0);
+        return GNUNET_SYSERR;
+      }
+      break;
     }
-    break;
   default:
     GNUNET_break (0);
     return GNUNET_SYSERR;

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