Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

tests_impl.h File Reference

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 run_ecdh_tests (void)
 

Function Documentation

◆ ecdh_hash_function_custom()

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.

References memcpy().

Referenced by test_ecdh_generator_basepoint().

◆ ecdh_hash_function_test_fail()

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.

Referenced by test_bad_scalar().

◆ run_ecdh_tests()

void run_ecdh_tests ( void  )

Definition at line 126 of file tests_impl.h.

References test_bad_scalar(), test_ecdh_api(), and test_ecdh_generator_basepoint().

Referenced by main().

◆ test_bad_scalar()

void test_bad_scalar ( void  )

◆ test_ecdh_api()

◆ test_ecdh_generator_basepoint()

Released under the MIT license