Skip to content

Commit ad59761

Browse files
ecmult_gen: Simplify code (no observable change)
1 parent ae024f2 commit ad59761

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ecmult_gen_impl.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,11 @@ static void secp256k1_ecmult_gen_blind(secp256k1_ecmult_gen_context *ctx, const
9797
return;
9898
}
9999
/* The prior blinding value (if not reset) is chained forward by including it in the hash. */
100-
secp256k1_scalar_get_b32(nonce32, &ctx->blind);
100+
secp256k1_scalar_get_b32(keydata, &ctx->blind);
101101
/** Using a CSPRNG allows a failure free interface, avoids needing large amounts of random data,
102102
* and guards against weak or adversarial seeds. This is a simpler and safer interface than
103103
* asking the caller for blinding values directly and expecting them to retry on failure.
104104
*/
105-
memcpy(keydata, nonce32, 32);
106105
VERIFY_CHECK(seed32 != NULL);
107106
memcpy(keydata + 32, seed32, 32);
108107
secp256k1_rfc6979_hmac_sha256_initialize(&rng, keydata, 64);

0 commit comments

Comments
 (0)