mirror of
https://github.com/status-im/secp256k1.git
synced 2025-02-23 03:08:10 +00:00
tests: Switch to NONE contexts in exhaustive and ctime tests
This commit is contained in:
parent
8d7a9a8eda
commit
37ba744f5b
@ -396,7 +396,7 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
while (count--) {
|
while (count--) {
|
||||||
/* Build context */
|
/* Build context */
|
||||||
ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY);
|
ctx = secp256k1_context_create(SECP256K1_CONTEXT_NONE);
|
||||||
secp256k1_testrand256(rand32);
|
secp256k1_testrand256(rand32);
|
||||||
CHECK(secp256k1_context_randomize(ctx, rand32));
|
CHECK(secp256k1_context_randomize(ctx, rand32));
|
||||||
|
|
||||||
|
@ -39,9 +39,7 @@ int main(void) {
|
|||||||
fprintf(stderr, "Usage: libtool --mode=execute valgrind ./valgrind_ctime_test\n");
|
fprintf(stderr, "Usage: libtool --mode=execute valgrind ./valgrind_ctime_test\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN
|
ctx = secp256k1_context_create(SECP256K1_CONTEXT_DECLASSIFY);
|
||||||
| SECP256K1_CONTEXT_VERIFY
|
|
||||||
| SECP256K1_CONTEXT_DECLASSIFY);
|
|
||||||
/** In theory, testing with a single secret input should be sufficient:
|
/** In theory, testing with a single secret input should be sufficient:
|
||||||
* If control flow depended on secrets the tool would generate an error.
|
* If control flow depended on secrets the tool would generate an error.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user