|
|
e069c38a15
|
cmake/OpenSSL.cmake: Need to tell cmake that the imported openssl targets need to link with Crytp32 and ws2_32 libraries.
|
2023-03-22 15:09:42 +01:00 |
|
|
|
d9f7c41d8b
|
.github/workflows/CI.yml: compile and test both openssl and libsecp256k1 as elliptic curve implementation.
|
2023-03-22 14:47:06 +01:00 |
|
|
|
f65a7ee6cd
|
Merge branch 'libsecp256k1' into devel
|
2023-03-22 14:43:31 +01:00 |
|
|
|
91764f43de
|
src/libsecp256k1/ecdsa.cpp: Adding ecdsa_recover()
|
2023-03-22 14:42:11 +01:00 |
|
|
|
53e126cb62
|
Adding src/libsecp256k1/ecdsa.cpp
|
2023-03-22 14:42:11 +01:00 |
|
|
|
259ca0f977
|
vendor/secp256k1/CMakeLists.txt: need to include recovery module for signatures.
|
2023-03-22 14:42:11 +01:00 |
|
|
|
760c50a655
|
src/libsecp256k1/ec.cpp: implement ec_generate_key() using ec_generqate_privkey() and ec_get_publickey()
|
2023-03-22 14:42:11 +01:00 |
|
|
|
b10911b21b
|
src/libsecp256k1/ec.cpp: Implement ec_generate_privkey() and ec_get_publickey()
|
2023-03-22 14:42:11 +01:00 |
|
|
|
78d90b622e
|
src/libsecp256k1/ec.cpp: ec_generate_key() should return 0 on success.
|
2023-03-22 14:42:11 +01:00 |
|
|
|
f920c7edee
|
CMakeLists.txt: Add support for compiling with either openssl or libsecp256k1 as EC library
|
2023-03-22 14:42:11 +01:00 |
|
|
|
54fc8614ef
|
Adding src/libsecp256k1/ec.cpp
|
2023-03-22 14:39:42 +01:00 |
|
|
|
2ab5e7b444
|
Adding src/libsecp256k1/rng.h
|
2023-03-22 14:39:42 +01:00 |
|
|
|
d737fe4762
|
Adding vendor/secp256k1/CMakeLists.txt
|
2023-03-22 14:39:42 +01:00 |
|
|
|
9587586968
|
move vendor/secp256k1-0.3.0 to vendor/secp256k1/repo
|
2023-03-22 14:39:42 +01:00 |
|
|
|
e8ee3fc0de
|
Adding vendor/secp256k1-0.3.0
|
2023-03-22 14:39:42 +01:00 |
|
|
|
8a55500854
|
Merge branch 'openssl-ecdsa' into devel
|
2023-03-22 14:39:03 +01:00 |
|
|
|
d853ed6f62
|
Adding src/openssl/ecdsa.cpp
|
2023-03-22 14:38:03 +01:00 |
|
|
|
f0ebda6da5
|
src/openssl/internal.h: Adding signature serialize/unserialize function definitions.
|
2023-03-22 14:37:33 +01:00 |
|
|
|
4aa94ebee9
|
src/openssl/helpers.c: Adding signature serialize/unserialize functions.
|
2023-03-22 14:37:33 +01:00 |
|
|
|
073955ab50
|
src/openssl/internal.h: Adding EC_KEY_new_secp256k1 macro
|
2023-03-22 14:37:33 +01:00 |
|
|
|
d695d1c9ad
|
src/openssl/internal.h: Adding ECDSA_SIG_recover_key_GFp function definition.
|
2023-03-22 14:21:17 +01:00 |
|
|
|
e4150af355
|
Adding src/openssl/recovery.c
|
2023-03-22 14:20:44 +01:00 |
|
|
|
88dacd22f8
|
src/openssl/ec.cpp: move helper functions/macros to internal.h and helpers.c files.
|
2023-03-22 14:19:36 +01:00 |
|
|
|
fdaab853ee
|
CMakeLists.txt: add "C" to project languages.
|
2023-03-22 14:16:01 +01:00 |
|
|
|
b1da6552f7
|
src/openssl/ec.cpp: make calculate_pubkey() output an EC_POINT instead of encoding to binary, also pass group as a parameter.
|
2023-03-22 14:03:03 +01:00 |
|
|
|
7ead6f6bde
|
src/openssl/ec.cpp: simplify EC_POINT_point2oct() with a macro.
|
2023-03-22 13:59:14 +01:00 |
|
|
|
fe873c1df8
|
tests/ec/ecdsa_sign.cpp: need to use ecdsa_verify() to check signatures.
different implementations produce different signatures so we can't use hardcoded values.
|
2023-03-22 13:46:28 +01:00 |
|
|
|
95740d47b3
|
tests/ec/ecdsa_verify.cpp: Adding more tests
|
2023-03-22 13:42:53 +01:00 |
|
|
|
a3efb5a5f2
|
src/openssl/ec.cpp: Remove unused variables.
|
2023-03-21 15:43:39 +01:00 |
|
|
|
15eaa97cec
|
tests/ec: fix test names.
|
2023-03-21 15:34:26 +01:00 |
|
|
|
7ef801c2a8
|
include/libeosio/ec.hpp: Adding ecdsa_recover()
|
2023-03-21 13:28:37 +01:00 |
|
|
|
640f67a934
|
include/libeosio/ec.hpp: Adding ecdsa_sign and ecdsa_verify()
|
2023-03-21 13:28:30 +01:00 |
|
|
|
73819444e5
|
include/libeosio/WIF.hpp: adding signature encode/decode functions.
|
2023-03-20 13:48:35 +01:00 |
|
|
|
8a6b476a8b
|
include/libeosio/ec.hpp: Adding signature type.
|
2023-03-20 13:48:35 +01:00 |
|
|
|
6eaf6ebe71
|
Adding tests/ec/generate.cpp
|
2023-03-20 13:47:04 +01:00 |
|
|
|
171876bbfa
|
include/libeosio/ec.hpp: adding ec_generate_privkey() and ec_get_publickey()
|
2023-03-19 21:51:18 +01:00 |
|
|
|
4b8c1c7733
|
src/ec.cpp: in _hex() add comma between numbers.
|
2023-03-19 15:32:08 +01:00 |
|
|
|
d904fd38c3
|
src/ec.cpp: in _hex() append leading zero if value is <= 0xF
|
2023-03-19 15:32:08 +01:00 |
|
|
|
6c6c7e2329
|
src/openssl/ec.cpp: implement ec_init() and ec_shutdown()
|
2023-03-19 12:02:14 +01:00 |
|
|
|
b9c9e58050
|
include/libeosio/ec.hpp: Add ec_init() and ec_shutdown() functions.
|
2023-03-19 12:02:14 +01:00 |
|
|
|
0c9b867049
|
CMakeLists.txt: Should link to OpenSSL with PRIVATE scope instead of INTERFACE. otherwise include path to openssl will not be added to the target.
|
2023-03-15 12:15:04 +01:00 |
|
|
|
ab932b92e4
|
.github/workflows/CI.yml: disable fail-fast
|
2023-03-15 11:17:35 +01:00 |
|
|
|
07bee1e9e5
|
.github/workflows/CI.yml: Change cmake ENABLE_TESTING variable to BUILD_TESTING
|
2023-03-15 11:11:46 +01:00 |
|
|
|
6b0d1aa459
|
CMakeLists.txt: Adding WITH_BENCHMARK option.
|
2023-03-14 21:19:00 +01:00 |
|
|
|
d7cdf9476d
|
CMakeLists.txt: CTest already defines "BUILD_TESTING" variable. so we do not have to use our own.
|
2023-03-14 21:18:05 +01:00 |
|
|
|
5f2fa977c3
|
Adding tests/benchmark/ec.cpp
|
2023-03-14 21:11:14 +01:00 |
|
|
|
de7f1c3e19
|
CMakeLists.txt: link with OpenSSL using imported target instead of variables.
|
2023-03-11 13:07:07 +01:00 |
|
|
|
9576e9d36f
|
include/libeosio/hash.hpp: Include cstddef instead of cstdint (std::size_t should be more consistent with that header across platforms)
|
2023-03-11 10:52:29 +01:00 |
|
|
|
541eb089e8
|
CMakeLists.txt: typo fix. OpenSSL not OpenGL :)
|
2023-03-11 09:55:52 +01:00 |
|
|
|
2a2360bd7d
|
Split include/libeosio/types.hpp into ec.hpp and hash.hpp
|
2023-03-11 09:48:12 +01:00 |
|