Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/tests.c
Show First 20 Lines • Show All 2,919 Lines • ▼ Show 20 Lines | |||||
void run_ecmult_multi_tests(void) { | void run_ecmult_multi_tests(void) { | ||||
secp256k1_scratch *scratch; | secp256k1_scratch *scratch; | ||||
test_secp256k1_pippenger_bucket_window_inv(); | test_secp256k1_pippenger_bucket_window_inv(); | ||||
test_ecmult_multi_pippenger_max_points(); | test_ecmult_multi_pippenger_max_points(); | ||||
scratch = secp256k1_scratch_create(&ctx->error_callback, 819200); | scratch = secp256k1_scratch_create(&ctx->error_callback, 819200); | ||||
test_ecmult_multi(scratch, secp256k1_ecmult_multi_var); | test_ecmult_multi(scratch, secp256k1_ecmult_multi_var); | ||||
test_ecmult_multi(NULL, secp256k1_ecmult_multi_var); | |||||
test_ecmult_multi(scratch, secp256k1_ecmult_pippenger_batch_single); | test_ecmult_multi(scratch, secp256k1_ecmult_pippenger_batch_single); | ||||
test_ecmult_multi(scratch, secp256k1_ecmult_strauss_batch_single); | test_ecmult_multi(scratch, secp256k1_ecmult_strauss_batch_single); | ||||
secp256k1_scratch_destroy(scratch); | secp256k1_scratch_destroy(scratch); | ||||
/* Run test_ecmult_multi with space for exactly one point */ | /* Run test_ecmult_multi with space for exactly one point */ | ||||
scratch = secp256k1_scratch_create(&ctx->error_callback, secp256k1_strauss_scratch_size(1) + STRAUSS_SCRATCH_OBJECTS*ALIGNMENT); | scratch = secp256k1_scratch_create(&ctx->error_callback, secp256k1_strauss_scratch_size(1) + STRAUSS_SCRATCH_OBJECTS*ALIGNMENT); | ||||
test_ecmult_multi(scratch, secp256k1_ecmult_multi_var); | test_ecmult_multi(scratch, secp256k1_ecmult_multi_var); | ||||
secp256k1_scratch_destroy(scratch); | secp256k1_scratch_destroy(scratch); | ||||
▲ Show 20 Lines • Show All 2,185 Lines • Show Last 20 Lines |