Bitcoin Core 29.99.0
P2P Digital Currency
Functions
tests_impl.h File Reference
#include "../../wycheproof/ecdh_secp256k1_test.h"
Include dependency graph for tests_impl.h:

Go to the source code of this file.

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_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. More...
 
static void test_ecdh_wycheproof (void)
 
static void run_ecdh_tests (void)
 

Function Documentation

◆ ecdh_hash_function_custom()

static int ecdh_hash_function_custom ( unsigned char *  output,
const unsigned char *  x,
const unsigned char *  y,
void *  data 
)
static

Definition at line 25 of file tests_impl.h.

Here is the caller graph for this function:

◆ ecdh_hash_function_test_fail()

static int ecdh_hash_function_test_fail ( unsigned char *  output,
const unsigned char *  x,
const unsigned char *  y,
void *  data 
)
static

Definition at line 17 of file tests_impl.h.

Here is the caller graph for this function:

◆ ecdh_hash_function_test_xpassthru()

static int ecdh_hash_function_test_xpassthru ( unsigned char *  output,
const unsigned char *  x,
const unsigned char *  y,
void *  data 
)
static

Definition at line 10 of file tests_impl.h.

Here is the caller graph for this function:

◆ run_ecdh_tests()

static void run_ecdh_tests ( void  )
static

Definition at line 185 of file tests_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_bad_scalar()

static void test_bad_scalar ( void  )
static

Definition at line 91 of file tests_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_ecdh_api()

static void test_ecdh_api ( void  )
static

Definition at line 34 of file tests_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_ecdh_generator_basepoint()

static void test_ecdh_generator_basepoint ( void  )
static

Definition at line 50 of file tests_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_ecdh_wycheproof()

static void test_ecdh_wycheproof ( void  )
static

Definition at line 152 of file tests_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_result_basepoint()

static void test_result_basepoint ( void  )
static

Test that ECDH(sG, 1/s) == ECDH((1/s)G, s) == ECDH(G, 1) for a few random s.

Definition at line 121 of file tests_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function: