From 0f9f4b63e62bace8ad7b867d1e8cc1c17cb30b88 Mon Sep 17 00:00:00 2001 From: todesstille <87335281+todesstille@users.noreply.github.com> Date: Thu, 30 Sep 2021 13:27:14 +0300 Subject: [PATCH] changed secret key format (#5) Co-authored-by: Dmitry Redkin --- src/eddsa.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/eddsa.c b/src/eddsa.c index ada215c..d80bd94 100644 --- a/src/eddsa.c +++ b/src/eddsa.c @@ -336,21 +336,15 @@ void goldilocks_ed448_private_to_secretkey ( uint8_t secretkey[GOLDILOCKS_EDDSA_448_PRIVATE_BYTES], const uint8_t privkey[GOLDILOCKS_EDDSA_448_PRIVATE_BYTES] ) { - { // Hash (SHAKE256) the privateKey and write first half to secretKey - hash_hash( secretkey, GOLDILOCKS_EDDSA_448_PRIVATE_BYTES, privkey, GOLDILOCKS_EDDSA_448_PRIVATE_BYTES ); - -// Sets bits due to EdDSA standard - - clamp(secretkey); - + secretkey[GOLDILOCKS_EDDSA_448_PRIVATE_BYTES - 1] |= 0x80; } }