![]() |
Bitcoin Core 32.1.0
P2P Digital Currency
|
#include "../../unit_test.h"#include "../../testutil.h"#include "../../wycheproof/ecdh_secp256k1_test.h"Go to the source code of this file.
Macros | |
| #define | SECP256K1_ECDH_WYCHEPROOF_NUMBER_TESTVECTORS (503) |
Functions | |
| static int | ecdh_hash_function_test_xpassthru (unsigned char *output, const unsigned char *x, const unsigned char *y, void *data) |
| static int | ecdh_hash_function_test_fail (unsigned char *output, const unsigned char *x, const unsigned char *y, void *data) |
| static int | ecdh_hash_function_custom (unsigned char *output, const unsigned char *x, const unsigned char *y, void *data) |
| static void | test_ecdh_api (void) |
| static void | test_ecdh_generator_basepoint (void) |
| static void | test_ecdh_ctx_sha256 (void) |
| static void | test_bad_scalar (void) |
| static void | test_result_basepoint (void) |
| Test that ECDH(sG, 1/s) == ECDH((1/s)G, s) == ECDH(G, 1) for a few random s. | |
| static void | test_ecdh_wycheproof (void) |
Variables | |
| static const struct tf_test_entry | tests_ecdh [] |
| #define SECP256K1_ECDH_WYCHEPROOF_NUMBER_TESTVECTORS (503) |
|
static |
Definition at line 28 of file tests_impl.h.
|
static |
Definition at line 20 of file tests_impl.h.
|
static |
Definition at line 13 of file tests_impl.h.
|
static |
Definition at line 118 of file tests_impl.h.
|
static |
Definition at line 37 of file tests_impl.h.
|
static |
Definition at line 95 of file tests_impl.h.
|
static |
Definition at line 53 of file tests_impl.h.
|
static |
Definition at line 175 of file tests_impl.h.
|
static |
Test that ECDH(sG, 1/s) == ECDH((1/s)G, s) == ECDH(G, 1) for a few random s.
Definition at line 144 of file tests_impl.h.
|
static |
Definition at line 209 of file tests_impl.h.