Go to the source code of this file.
|
| 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) |
| |
◆ ecdh_hash_function_custom()
| static int ecdh_hash_function_custom |
( |
unsigned char * |
output, |
|
|
const unsigned char * |
x, |
|
|
const unsigned char * |
y, |
|
|
void * |
data |
|
) |
| |
|
static |
◆ 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 |
◆ 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 |
◆ test_bad_scalar()
| static void test_bad_scalar |
( |
void |
| ) |
|
|
static |
◆ test_ecdh_api()
| static void test_ecdh_api |
( |
void |
| ) |
|
|
static |
◆ test_ecdh_generator_basepoint()
| static void test_ecdh_generator_basepoint |
( |
void |
| ) |
|
|
static |
◆ test_ecdh_wycheproof()
| static void test_ecdh_wycheproof |
( |
void |
| ) |
|
|
static |
◆ 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 119 of file tests_impl.h.
◆ tests_ecdh
Initial value:= {
}
static void test_ecdh_api(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_generator_basepoint(void)
static void test_ecdh_wycheproof(void)
Definition at line 184 of file tests_impl.h.