summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_refreshes_reveal.c
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-04-26 23:34:14 +0200
committerFlorian Dold <florian@dold.me>2022-04-26 23:34:14 +0200
commit17a00ef22dadd10c97fea188c75a8aaeb1e64442 (patch)
tree838efd9d5c6ba577f4735b9da57a9d38489b007b /src/exchange/taler-exchange-httpd_refreshes_reveal.c
parent47e276e11a5d1d92bbfc3c8c2e940902af3003dd (diff)
downloadexchange-17a00ef22dadd10c97fea188c75a8aaeb1e64442.tar.gz
exchange-17a00ef22dadd10c97fea188c75a8aaeb1e64442.tar.bz2
exchange-17a00ef22dadd10c97fea188c75a8aaeb1e64442.zip
age restriction: make seed a HashCode due to endianess and security level concerns
Diffstat (limited to 'src/exchange/taler-exchange-httpd_refreshes_reveal.c')
-rw-r--r--src/exchange/taler-exchange-httpd_refreshes_reveal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
index fbfbf8acb..19c126f7e 100644
--- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c
+++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
@@ -297,8 +297,6 @@ check_commitment (struct RevealContext *rctx,
* the transfer_secret and the old age commitment. */
if (NULL != rctx->old_age_commitment)
{
- uint64_t seed = (uint64_t) ts.key.bits[0]
- | (uint64_t) ts.key.bits[1] << 32;
struct TALER_AgeCommitmentProof acp = {
/* we only need the commitment, not the proof, for the call to
* TALER_age_commitment_derive. */
@@ -310,7 +308,7 @@ check_commitment (struct RevealContext *rctx,
GNUNET_assert (GNUNET_OK ==
TALER_age_commitment_derive (
&acp,
- seed,
+ &ts.key,
&nacp));
TALER_age_commitment_hash (&nacp.commitment, &h);