Add ECDH module which works by hashing the output of ecmult_const

This commit is contained in:
Andrew Poelstra
2015-06-29 15:06:28 -05:00
parent 4401500060
commit 0739bbb6f0
9 changed files with 193 additions and 2 deletions

View File

@@ -2356,6 +2356,10 @@ void run_ecdsa_openssl(void) {
}
#endif
#ifdef ENABLE_MODULE_ECDH
# include "modules/ecdh/tests_impl.h"
#endif
int main(int argc, char **argv) {
unsigned char seed16[16] = {0};
unsigned char run32[32] = {0};
@@ -2444,6 +2448,11 @@ int main(int argc, char **argv) {
run_endomorphism_tests();
#endif
#ifdef ENABLE_MODULE_ECDH
/* ecdh tests */
run_ecdh_tests();
#endif
/* ecdsa tests */
run_random_pubkeys();
run_ecdsa_sign_verify();