commit 36b17647b6f335152fd43a33efaea271bc51a2cc
parent 520c6e2550402bb3ae6ae6b4e78523b12283c3b3
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date: Thu, 9 Nov 2023 17:46:07 +0100
[util] minor changes
Diffstat:
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git 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
@@ -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,