Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the source code of this file.
Functions | |
static int | recovery_test_nonce_function (unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *algo16, void *data, unsigned int counter) |
void | test_ecdsa_recovery_api (void) |
void | test_ecdsa_recovery_end_to_end (void) |
void | test_ecdsa_recovery_edge_cases (void) |
void | run_recovery_tests (void) |
Function Documentation
◆ recovery_test_nonce_function()
|
static |
Definition at line 10 of file tests_impl.h.
References secp256k1_rand_bits().
Referenced by test_ecdsa_recovery_api().
◆ run_recovery_tests()
void run_recovery_tests | ( | void | ) |
Definition at line 382 of file tests_impl.h.
References count, test_ecdsa_recovery_api(), test_ecdsa_recovery_edge_cases(), and test_ecdsa_recovery_end_to_end().
Referenced by main().
◆ test_ecdsa_recovery_api()
void test_ecdsa_recovery_api | ( | void | ) |
Definition at line 31 of file tests_impl.h.
References CHECK, counting_illegal_callback_fn(), ctx, memcpy(), recovery_test_nonce_function(), secp256k1_context_create(), secp256k1_context_destroy(), SECP256K1_CONTEXT_NONE, secp256k1_context_set_error_callback(), secp256k1_context_set_illegal_callback(), SECP256K1_CONTEXT_SIGN, SECP256K1_CONTEXT_VERIFY, secp256k1_ec_pubkey_create(), secp256k1_ec_seckey_verify(), secp256k1_ecdsa_recover(), secp256k1_ecdsa_recoverable_signature_convert(), secp256k1_ecdsa_recoverable_signature_parse_compact(), secp256k1_ecdsa_recoverable_signature_serialize_compact(), secp256k1_ecdsa_sign(), and secp256k1_ecdsa_sign_recoverable().
Referenced by run_recovery_tests().
◆ test_ecdsa_recovery_edge_cases()
void test_ecdsa_recovery_edge_cases | ( | void | ) |
Definition at line 209 of file tests_impl.h.
References CHECK, ctx, secp256k1_ecdsa_recover(), secp256k1_ecdsa_recoverable_signature_parse_compact(), secp256k1_ecdsa_signature_parse_der(), and secp256k1_ecdsa_verify().
Referenced by run_recovery_tests().
◆ test_ecdsa_recovery_end_to_end()
void test_ecdsa_recovery_end_to_end | ( | void | ) |
Definition at line 150 of file tests_impl.h.
References CHECK, ctx, random_scalar_order_test(), secp256k1_ec_pubkey_create(), secp256k1_ec_seckey_verify(), secp256k1_ecdsa_recover(), secp256k1_ecdsa_recoverable_signature_convert(), secp256k1_ecdsa_recoverable_signature_parse_compact(), secp256k1_ecdsa_recoverable_signature_serialize_compact(), secp256k1_ecdsa_sign(), secp256k1_ecdsa_sign_recoverable(), secp256k1_ecdsa_verify(), secp256k1_rand_bits(), secp256k1_rand_int(), and secp256k1_scalar_get_b32().
Referenced by run_recovery_tests().