Wire Sysio Wire Sysion 1.0.0
|
Go to the source code of this file.
Functions | |
int | ecdh_hash_function_test_fail (unsigned char *output, const unsigned char *x, const unsigned char *y, void *data) |
int | ecdh_hash_function_custom (unsigned char *output, const unsigned char *x, const unsigned char *y, void *data) |
void | test_ecdh_api (void) |
void | test_ecdh_generator_basepoint (void) |
void | test_bad_scalar (void) |
void | test_result_basepoint (void) |
void | run_ecdh_tests (void) |
int ecdh_hash_function_custom | ( | unsigned char * | output, |
const unsigned char * | x, | ||
const unsigned char * | y, | ||
void * | data ) |
Definition at line 18 of file tests_impl.h.
int ecdh_hash_function_test_fail | ( | unsigned char * | output, |
const unsigned char * | x, | ||
const unsigned char * | y, | ||
void * | data ) |
Definition at line 10 of file tests_impl.h.
void run_ecdh_tests | ( | void | ) |
Definition at line 158 of file tests_impl.h.
void test_bad_scalar | ( | void | ) |
Definition at line 97 of file tests_impl.h.
void test_ecdh_api | ( | void | ) |
Definition at line 27 of file tests_impl.h.
void test_ecdh_generator_basepoint | ( | void | ) |
Definition at line 56 of file tests_impl.h.
void test_result_basepoint | ( | void | ) |
Test that ECDH(sG, 1/s) == ECDH((1/s)G, s) == ECDH(G, 1) for a few random s.
Definition at line 127 of file tests_impl.h.