@@ -172,7 +172,7 @@ void run_context_tests(int use_prealloc) {
172
172
sign_prealloc = malloc (secp256k1_context_preallocated_size (SECP256K1_CONTEXT_SIGN ));
173
173
vrfy_prealloc = malloc (secp256k1_context_preallocated_size (SECP256K1_CONTEXT_VERIFY ));
174
174
both_prealloc = malloc (secp256k1_context_preallocated_size (SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY ));
175
- sttc_prealloc = malloc (secp256k1_context_preallocated_clone_size (secp256k1_context_no_precomp ));
175
+ sttc_prealloc = malloc (secp256k1_context_preallocated_clone_size (secp256k1_context_static ));
176
176
CHECK (none_prealloc != NULL );
177
177
CHECK (sign_prealloc != NULL );
178
178
CHECK (vrfy_prealloc != NULL );
@@ -182,13 +182,13 @@ void run_context_tests(int use_prealloc) {
182
182
sign = secp256k1_context_preallocated_create (sign_prealloc , SECP256K1_CONTEXT_SIGN );
183
183
vrfy = secp256k1_context_preallocated_create (vrfy_prealloc , SECP256K1_CONTEXT_VERIFY );
184
184
both = secp256k1_context_preallocated_create (both_prealloc , SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY );
185
- sttc = secp256k1_context_preallocated_clone (secp256k1_context_no_precomp , sttc_prealloc );
185
+ sttc = secp256k1_context_preallocated_clone (secp256k1_context_static , sttc_prealloc );
186
186
} else {
187
187
none = secp256k1_context_create (SECP256K1_CONTEXT_NONE );
188
188
sign = secp256k1_context_create (SECP256K1_CONTEXT_SIGN );
189
189
vrfy = secp256k1_context_create (SECP256K1_CONTEXT_VERIFY );
190
190
both = secp256k1_context_create (SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY );
191
- sttc = secp256k1_context_clone (secp256k1_context_no_precomp );
191
+ sttc = secp256k1_context_clone (secp256k1_context_static );
192
192
}
193
193
194
194
memset (& zero_pubkey , 0 , sizeof (zero_pubkey ));
@@ -5802,7 +5802,7 @@ void run_ec_pubkey_parse_test(void) {
5802
5802
ecount = 0 ;
5803
5803
VG_UNDEF (& pubkey , sizeof (pubkey ));
5804
5804
CHECK (secp256k1_ec_pubkey_parse (ctx , & pubkey , pubkeyc , 65 ) == 1 );
5805
- CHECK (secp256k1_ec_pubkey_parse (secp256k1_context_no_precomp , & pubkey , pubkeyc , 65 ) == 1 );
5805
+ CHECK (secp256k1_ec_pubkey_parse (secp256k1_context_static , & pubkey , pubkeyc , 65 ) == 1 );
5806
5806
VG_CHECK (& pubkey , sizeof (pubkey ));
5807
5807
CHECK (ecount == 0 );
5808
5808
VG_UNDEF (& ge , sizeof (ge ));
0 commit comments