Merge #835: Don't use reserved identifiers memczero and benchmark_verify_t
1f4dd03838Typedef (u)int128_t only when they're not provided by the compiler (Tim Ruffing)e89278f211Don't use reserved identifiers memczero and benchmark_verify_t (Tim Ruffing) Pull request description: As identified in #829 and #833. Fixes #829. Since we touch this anyway, this commit additionally makes the identifiers in the benchmark files a little bit more consistent. This is necessary before we can merge #833. I preferred a separate PR because it makes it easier to see the results of Travis in #833. ACKs for top commit: sipa: utACK1f4dd03838jonasnick: ACK1f4dd03838Tree-SHA512: c0ec92798f3c94f3ef6ac69b3f0f39a39257a32be9d9a068832cece1ebe64c89848b70e44652fc397004b8b240883ac4bc0c8f95abbe4ba4b028de120e6734bf
This commit is contained in:
@@ -582,7 +582,7 @@ int secp256k1_ec_pubkey_create(const secp256k1_context* ctx, secp256k1_pubkey *p
|
||||
|
||||
ret = secp256k1_ec_pubkey_create_helper(&ctx->ecmult_gen_ctx, &seckey_scalar, &p, seckey);
|
||||
secp256k1_pubkey_save(pubkey, &p);
|
||||
memczero(pubkey, sizeof(*pubkey), !ret);
|
||||
secp256k1_memczero(pubkey, sizeof(*pubkey), !ret);
|
||||
|
||||
secp256k1_scalar_clear(&seckey_scalar);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user