Fix missing clears on secret values

This commit is contained in:
mllwchrry
2026-07-10 19:06:29 +03:00
parent a2b001cc20
commit a69a662d05
4 changed files with 32 additions and 1 deletions

View File

@@ -171,6 +171,7 @@ int secp256k1_ecdsa_anti_exfil_signer_commit(const secp256k1_context* ctx, secp2
secp256k1_ecmult_gen_ge(&ctx->ecmult_gen_ctx, &r, &k);
secp256k1_ecdsa_s2c_opening_save(opening, &r);
secp256k1_scalar_clear(&k);
secp256k1_memclear_explicit(nonce32, 32);
return 1;
}