aboutsummaryrefslogtreecommitdiff
path: root/src/util/age_restriction.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/util/age_restriction.c
parent47e276e11a5d1d92bbfc3c8c2e940902af3003dd (diff)
downloadexchange-17a00ef22dadd10c97fea188c75a8aaeb1e64442.tar.xz
age restriction: make seed a HashCode due to endianess and security level concerns
Diffstat (limited to 'src/util/age_restriction.c')
-rw-r--r--src/util/age_restriction.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/age_restriction.c b/src/util/age_restriction.c
index 45ebc03c4..65c1574b3 100644
--- a/src/util/age_restriction.c
+++ b/src/util/age_restriction.c
@@ -173,7 +173,7 @@ FAIL:
enum GNUNET_GenericReturnValue
TALER_age_commitment_derive (
const struct TALER_AgeCommitmentProof *orig,
- const uint64_t salt,
+ const struct GNUNET_HashCode *salt,
struct TALER_AgeCommitmentProof *newacp)
{
GNUNET_assert (NULL != newacp);
@@ -211,8 +211,8 @@ TALER_age_commitment_derive (
{
GNUNET_CRYPTO_edx25519_private_key_derive (
&orig->proof.keys[i].priv,
- &salt,
- sizeof(salt),
+ salt,
+ sizeof(*salt),
&newacp->proof.keys[i].priv);
}
#else