[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-donau] branch master updated: [util] minor changes
From: |
gnunet |
Subject: |
[taler-donau] branch master updated: [util] minor changes |
Date: |
Thu, 09 Nov 2023 17:54:27 +0100 |
This is an automated email from the git hooks/post-receive script.
lukas-matyja pushed a commit to branch master
in repository donau.
The following commit(s) were added to refs/heads/master by this push:
new 36b1764 [util] minor changes
36b1764 is described below
commit 36b17647b6f335152fd43a33efaea271bc51a2cc
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
AuthorDate: Thu Nov 9 17:46:07 2023 +0100
[util] minor changes
---
src/include/donau_crypto_lib.h | 4 ++--
src/util/charity_signatures.c | 11 ++++++-----
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/include/donau_crypto_lib.h b/src/include/donau_crypto_lib.h
index 7146947..102d11f 100644
--- a/src/include/donau_crypto_lib.h
+++ b/src/include/donau_crypto_lib.h
@@ -148,7 +148,7 @@ struct TALER_DONAU_BearerToken
* @param[out] charity_sig where to write the signature
*/
void
-TALER_charity_blinded_unique_donation_identifier_key_pair_sign (
+TALER_charity_budi_key_pair_sign (
const unsigned int num_bkp,
const struct TALER_BlindedUniqueDonationIdentifierKeyPair *bkp[static
num_bkp],
const struct TALER_DONAU_CharityPrivateKeyP *charity_priv,
@@ -165,7 +165,7 @@
TALER_charity_blinded_unique_donation_identifier_key_pair_sign (
* @return #GNUNET_OK if the signature is valid
*/
enum GNUNET_GenericReturnValue
-TALER_charity_blinded_unique_donation_identifier_key_pair_verify (
+TALER_charity_budi_key_pair_verify (
const unsigned int num_bkp,
const struct TALER_BlindedUniqueDonationIdentifierKeyPair *bkp[static
num_bkp],
const struct TALER_DONAU_CharityPublicKeyP *charity_pub,
diff --git a/src/util/charity_signatures.c b/src/util/charity_signatures.c
index 40cf875..7d5b706 100644
--- a/src/util/charity_signatures.c
+++ b/src/util/charity_signatures.c
@@ -24,7 +24,7 @@
void
-TALER_charity_blinded_unique_donation_identifier_key_pair_sign (
+TALER_charity_budi_key_pair_sign (
const unsigned int num_bkp,
const struct TALER_BlindedUniqueDonationIdentifierKeyPair *bkp[num_bkp],
const struct TALER_DONAU_CharityPrivateKeyP *charity_priv,
@@ -33,7 +33,8 @@
TALER_charity_blinded_unique_donation_identifier_key_pair_sign (
struct TALER_BudiKeyPairTrackPS tps = {
.purpose.size = htonl (sizeof (bkp[0])* num_bkp),
.purpose.purpose = htonl (TALER_SIGNATURE_MERCHANT_TRACK_TRANSACTION),
- .bkp = *bkp,
+ .num_bkp = num_bkp,
+ .bkp = *bkp
};
GNUNET_CRYPTO_eddsa_sign (&charity_priv->eddsa_priv,
@@ -60,17 +61,17 @@ struct TALER_BudiKeyPairTrackPS
unsigned int num_bkp;
/**
- * The BUDI-Key-Pair. It contains the BUDI value that must have been
+ * List of BUDI-Key-Pairs. A BUID-Key-Pair contains the BUDI value which
must be
* signed (blindly) by the Donau.
*/
- struct TALER_BlindedUniqueDonationIdentifierKeyPair *bkp[static num_bkp];
+ struct TALER_BlindedUniqueDonationIdentifierKeyPair bkp;
};
enum GNUNET_GenericReturnValue
-TALER_charity_blinded_unique_donation_identifier_key_pair_verify (
+TALER_charity_budi_key_pair_verify (
const unsigned int num_bkp,
const struct TALER_BlindedUniqueDonationIdentifierKeyPair *bkp[static
num_bkp],
const struct TALER_DONAU_CharityPublicKeyP *charity_pub,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.