Convert the field/group/ecdsa constant initialization to static consts

This commit is contained in:
Pieter Wuille
2015-01-21 17:38:17 -05:00
parent 19f3e76002
commit 4732d26069
12 changed files with 73 additions and 173 deletions

View File

@@ -1657,11 +1657,6 @@ int main(int argc, char **argv) {
/* initializing a second time shouldn't cause any harm or memory leaks. */
secp256k1_start(SECP256K1_START_SIGN | SECP256K1_START_VERIFY);
/* Likewise, re-running the internal init functions should be harmless. */
secp256k1_fe_start();
secp256k1_ge_start();
secp256k1_ecdsa_start();
run_sha256_tests();
run_hmac_sha256_tests();
run_rfc6979_hmac_sha256_tests();
@@ -1706,10 +1701,5 @@ int main(int argc, char **argv) {
/* shutting down twice shouldn't cause any double frees. */
secp256k1_stop();
/* Same for the internal shutdown functions. */
secp256k1_fe_stop();
secp256k1_ge_stop();
secp256k1_ecdsa_stop();
return 0;
}