donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit dd631bf207c16a3a0f18ee1f304e107b98b3e109
parent ece5ed60dc92b922df374fe8d19c79b7e6168a66
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date:   Wed, 29 May 2024 15:55:34 +0200

unblind signature param

Diffstat:
Msrc/pq/pq_query_helper.c | 28++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/pq/pq_query_helper.c b/src/pq/pq_query_helper.c @@ -337,9 +337,9 @@ qconv_array ( sizes = buffer_lengths; break; } - case DONAU_PQ_array_of_unblinded_du_sig: // FIXME implement + case DONAU_PQ_array_of_unblinded_du_sig: { - const struct DONAU_BlindedDonationUnitSignature *du_sigs = data; + const struct DONAU_DonationUnitSignature *du_sigs = data; size_t len; buffers = GNUNET_new_array (num, void *); @@ -347,19 +347,19 @@ qconv_array ( for (size_t i = 0; i<num; i++) { - const struct GNUNET_CRYPTO_BlindedSignature *bs = - du_sigs[i].blinded_sig; + const struct GNUNET_CRYPTO_UnblindedSignature *ubs = + du_sigs[i].unblinded_sig; - switch (bs->cipher) + switch (ubs->cipher) { case GNUNET_CRYPTO_BSA_RSA: len = GNUNET_CRYPTO_rsa_signature_encode ( - bs->details.blinded_rsa_signature, + ubs->details.rsa_signature, &buffers[i]); RETURN_UNLESS (len != 0); break; case GNUNET_CRYPTO_BSA_CS: - len = sizeof (bs->details.blinded_cs_answer); + len = sizeof (ubs->details.cs_signature); break; default: GNUNET_assert (0); @@ -451,14 +451,14 @@ qconv_array ( } break; } - case DONAU_PQ_array_of_unblinded_du_sig: // FIXME implement + case DONAU_PQ_array_of_unblinded_du_sig: { - const struct DONAU_BlindedDonationUnitSignature *denom_sigs = data; - const struct GNUNET_CRYPTO_BlindedSignature *bs = - denom_sigs[i].blinded_sig; + const struct DONAU_DonationUnitSignature *du_sigs = data; + const struct GNUNET_CRYPTO_UnblindedSignature *ubs = + du_sigs[i].unblinded_sig; uint32_t be[2]; - be[0] = htonl ((uint32_t) bs->cipher); + be[0] = htonl ((uint32_t) ubs->cipher); be[1] = htonl (0x00); /* magic margker: unblinded */ GNUNET_memcpy (out, &be, @@ -466,7 +466,7 @@ qconv_array ( out += sizeof(be); sz -= sizeof(be); - switch (bs->cipher) + switch (ubs->cipher) { case GNUNET_CRYPTO_BSA_RSA: /* For RSA, 'same_sized' must have been false */ @@ -477,7 +477,7 @@ qconv_array ( break; case GNUNET_CRYPTO_BSA_CS: GNUNET_memcpy (out, - &bs->details.blinded_cs_answer, + &ubs->details.cs_signature, sz); break; default: