[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 01/02: -dce
From: |
gnunet |
Subject: |
[taler-exchange] 01/02: -dce |
Date: |
Wed, 09 Feb 2022 10:03:14 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit e82d18325abb63c08b15be1c291b9f2c2988cfdc
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Feb 9 10:02:10 2022 +0100
-dce
---
src/util/crypto.c | 20 ++------------------
1 file changed, 2 insertions(+), 18 deletions(-)
diff --git a/src/util/crypto.c b/src/util/crypto.c
index a32a1023..ae611901 100644
--- a/src/util/crypto.c
+++ b/src/util/crypto.c
@@ -413,8 +413,8 @@ TALER_planchet_to_coin (
{
struct TALER_DenominationSignature sig;
- if (dk->cipher != blind_sig->cipher
- && dk->cipher != alg_values->cipher)
+ if ( (dk->cipher != blind_sig->cipher) ||
+ (dk->cipher != alg_values->cipher) )
{
GNUNET_break_op (0);
return GNUNET_SYSERR;
@@ -435,22 +435,6 @@ TALER_planchet_to_coin (
break;
case TALER_DENOMINATION_CS:
{
- struct GNUNET_CRYPTO_CsC c[2];
- struct GNUNET_CRYPTO_CsBlindingSecret bs[2];
- struct TALER_DenominationCSPublicRPairP r_pub_blind;
-
- GNUNET_CRYPTO_cs_blinding_secrets_derive (&bks->nonce,
- bs);
- GNUNET_CRYPTO_cs_calc_blinded_c (
- bs,
- alg_values->details.cs_values.r_pub_pair.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,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.