[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-donau] branch master updated: fixes
From: |
gnunet |
Subject: |
[taler-donau] branch master updated: fixes |
Date: |
Mon, 20 Nov 2023 14:56:32 +0100 |
This is an automated email from the git hooks/post-receive script.
johannes-casaburi pushed a commit to branch master
in repository donau.
The following commit(s) were added to refs/heads/master by this push:
new 802ff17 fixes
new 422c225 fixes
802ff17 is described below
commit 802ff179ddcb7b327bf8287605e8d91563651225
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
AuthorDate: Mon Nov 20 14:42:31 2023 +0100
fixes
---
src/include/donau_crypto_lib.h | 2 +-
src/util/donau_signatures.c | 13 ++++++++-----
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/include/donau_crypto_lib.h b/src/include/donau_crypto_lib.h
index e76501a..8b593da 100644
--- a/src/include/donau_crypto_lib.h
+++ b/src/include/donau_crypto_lib.h
@@ -255,7 +255,7 @@ DONAU_donation_statement_verify (
const unsigned int year,
const struct TALER_DONAU_HashDonorTaxId *i,
const struct TALER_DONAU_EddsaPublicKeyP *donau_pub,
- const struct TALER_DonauSignatureP *statement_sig);
+ struct TALER_DonauSignatureP *statement_sig);
#endif
diff --git a/src/util/donau_signatures.c b/src/util/donau_signatures.c
index 59df15e..1ebbd9a 100644
--- a/src/util/donau_signatures.c
+++ b/src/util/donau_signatures.c
@@ -68,14 +68,15 @@ DONAU_donation_statement_sign (
struct TALER_DonauSignatureP *statement_sig)
{
struct TALER_DonationStatementConfirmationPS tps = {
- .purpose.size = htonl (sizeof (struct
TALER_DonationStatementConfirmationPS)),
+ .purpose.size = htonl (sizeof (struct
+ TALER_DonationStatementConfirmationPS)),
.purpose.purpose = htonl (DONAU_SIGNATURE_DONAU_DONATION_STATEMENT),
.year = htonl (year),
.i = *i
};
TALER_amount_hton (&tps.amount_tot,
- amount_tot);
+ amount_tot);
GNUNET_CRYPTO_eddsa_sign (&donau_priv->eddsa_priv,
&tps,
@@ -88,18 +89,19 @@ DONAU_donation_statement_verify (
const struct TALER_Amount *amount_tot,
const unsigned int year,
const struct TALER_DONAU_HashDonorTaxId *i,
- const struct TALER_DONAU_PublicKeyP *donau_pub,
+ const struct TALER_DONAU_EddsaPublicKeyP *donau_pub,
struct TALER_DonauSignatureP *statement_sig)
{
struct TALER_DonationStatementConfirmationPS tps = {
- .purpose.size = htonl (sizeof (struct
TALER_DonationStatementConfirmationPS)),
+ .purpose.size = htonl (sizeof (struct
+ TALER_DonationStatementConfirmationPS)),
.purpose.purpose = htonl (DONAU_SIGNATURE_DONAU_DONATION_STATEMENT),
.year = htonl (year),
.i = *i
};
TALER_amount_hton (&tps.amount_tot,
- amount_tot);
+ amount_tot);
return
GNUNET_CRYPTO_eddsa_verify (DONAU_SIGNATURE_DONAU_DONATION_STATEMENT,
@@ -108,4 +110,5 @@ DONAU_donation_statement_verify (
&donau_pub->eddsa_pub);
}
+
/* end of donau_signatures.c */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-donau] branch master updated: fixes,
gnunet <=