gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -use singleton for RSA


From: gnunet
Subject: [taler-exchange] branch master updated: -use singleton for RSA
Date: Fri, 22 Dec 2023 18:32:14 +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 ba71c185 -use singleton for RSA
ba71c185 is described below

commit ba71c18526cb8adf3ac69b5df919bb1f3c92488f
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sat Dec 23 01:32:06 2023 +0800

    -use singleton for RSA
---
 src/json/json_helper.c                | 13 +++++++------
 src/lib/exchange_api_batch_withdraw.c |  2 +-
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index 9f57c56f..01ca45f2 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -1174,6 +1174,7 @@ parse_exchange_withdraw_values (void *cls,
   };
   const char *emsg;
   unsigned int eline;
+  enum GNUNET_CRYPTO_BlindSignatureAlgorithm ci;
 
   (void) cls;
   if (GNUNET_OK !=
@@ -1185,17 +1186,18 @@ parse_exchange_withdraw_values (void *cls,
     GNUNET_break_op (0);
     return GNUNET_SYSERR;
   }
-  bi = GNUNET_new (struct GNUNET_CRYPTO_BlindingInputValues);
-  bi->cipher = string_to_cipher (cipher);
-  bi->rc = 1;
-  switch (bi->cipher)
+  ci = string_to_cipher (cipher);
+  switch (ci)
   {
   case GNUNET_CRYPTO_BSA_INVALID:
     break;
   case GNUNET_CRYPTO_BSA_RSA:
-    ewv->blinding_inputs = bi;
+    ewv->blinding_inputs = TALER_denom_ewv_rsa_singleton ()->blinding_inputs;
     return GNUNET_OK;
   case GNUNET_CRYPTO_BSA_CS:
+    bi = GNUNET_new (struct GNUNET_CRYPTO_BlindingInputValues);
+    bi->cipher = GNUNET_CRYPTO_BSA_CS;
+    bi->rc = 1;
     {
       struct GNUNET_JSON_Specification ispec[] = {
         GNUNET_JSON_spec_fixed (
@@ -1224,7 +1226,6 @@ parse_exchange_withdraw_values (void *cls,
     }
   }
   GNUNET_break_op (0);
-  GNUNET_free (bi);
   return GNUNET_SYSERR;
 }
 
diff --git a/src/lib/exchange_api_batch_withdraw.c 
b/src/lib/exchange_api_batch_withdraw.c
index cd3286f3..8366ffda 100644
--- a/src/lib/exchange_api_batch_withdraw.c
+++ b/src/lib/exchange_api_batch_withdraw.c
@@ -74,7 +74,7 @@ struct CoinData
   struct TALER_PlanchetDetail pd;
 
   /**
-   * Values of the @cipher selected
+   * Values of the cipher selected
    */
   struct TALER_ExchangeWithdrawValues alg_values;
 

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