summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/crypto_ecc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index bc58142c2..7110a2c4d 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -476,6 +476,10 @@ GNUNET_CRYPTO_ecdsa_key_get_anonymous ()
GNUNET_CRYPTO_mpi_print_unsigned (anonymous.d,
sizeof(anonymous.d),
GCRYMPI_CONST_ONE);
+ anonymous.d[0] &= 248;
+ anonymous.d[31] &= 127;
+ anonymous.d[31] |= 64;
+
once = 1;
return &anonymous;
}