mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-04 12:03:41 +02:00
Move "ec" directory to "crypto" and move openssl implementation into crypto/openssl directory.
This commit is contained in:
parent
04641354ff
commit
bc0369f301
10 changed files with 14 additions and 14 deletions
|
|
@ -18,7 +18,6 @@ set (PROGRAM_EXE ${CMAKE_PROJECT_NAME})
|
||||||
|
|
||||||
set (PROGRAM_SOURCE
|
set (PROGRAM_SOURCE
|
||||||
src/string.cpp
|
src/string.cpp
|
||||||
src/ec/openssl.cpp
|
|
||||||
src/base58.cpp
|
src/base58.cpp
|
||||||
src/checksum.cpp
|
src/checksum.cpp
|
||||||
src/WIF.cpp
|
src/WIF.cpp
|
||||||
|
|
@ -46,6 +45,7 @@ endif()
|
||||||
|
|
||||||
# Libraries
|
# Libraries
|
||||||
find_package(OpenSSL 1.1 REQUIRED)
|
find_package(OpenSSL 1.1 REQUIRED)
|
||||||
|
set (PROGRAM_SOURCE ${PROGRAM_SOURCE} src/crypto/openssl/ec.cpp)
|
||||||
|
|
||||||
if (USE_THREADS)
|
if (USE_THREADS)
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
#define EOSIOKEYGEN_WIF_H
|
#define EOSIOKEYGEN_WIF_H
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "ec/types.h"
|
#include "crypto/types.h"
|
||||||
|
|
||||||
namespace eoskeygen {
|
namespace eoskeygen {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include "ec/generate.h"
|
#include "crypto/ec.h"
|
||||||
#include "benchmark.h"
|
#include "benchmark.h"
|
||||||
|
|
||||||
using std::chrono::steady_clock;
|
using std::chrono::steady_clock;
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#ifndef EOSIOKEYGEN_EC_GENERATE_H
|
#ifndef EOSIOKEYGEN_CRYPTO_EC_H
|
||||||
#define EOSIOKEYGEN_EC_GENERATE_H
|
#define EOSIOKEYGEN_CRYPTO_EC_H
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
|
|
@ -36,4 +36,4 @@ int ec_generate_key(struct ec_keypair *pair);
|
||||||
|
|
||||||
} // namespace eoskeygen
|
} // namespace eoskeygen
|
||||||
|
|
||||||
#endif /* EOSIOKEYGEN_EC_GENERATE_H */
|
#endif /* EOSIOKEYGEN_CRYPTO_EC_H */
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
#include <openssl/ec.h>
|
#include <openssl/ec.h>
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
#include <openssl/hmac.h>
|
#include <openssl/hmac.h>
|
||||||
#include "generate.h"
|
#include "../ec.h"
|
||||||
|
|
||||||
namespace eoskeygen {
|
namespace eoskeygen {
|
||||||
|
|
||||||
|
|
@ -21,8 +21,8 @@
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#ifndef EOSIOKEYGEN_EC_TYPES_H
|
#ifndef EOSIOKEYGEN_CRYPTO_TYPES_H
|
||||||
#define EOSIOKEYGEN_EC_TYPES_H
|
#define EOSIOKEYGEN_CRYPTO_TYPES_H
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
|
|
@ -47,4 +47,4 @@ struct ec_keypair {
|
||||||
|
|
||||||
} // namespace eoskeygen
|
} // namespace eoskeygen
|
||||||
|
|
||||||
#endif /* EOSIOKEYGEN_EC_TYPES_H */
|
#endif /* EOSIOKEYGEN_CRYPTO_TYPES_H */
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "ec/generate.h"
|
#include "crypto/ec.h"
|
||||||
#include "key_search_helpers.h"
|
#include "key_search_helpers.h"
|
||||||
#include "key_search.h"
|
#include "key_search.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
#define EOSIOKEYGEN_KEY_SEARCH_HELPERS_H
|
#define EOSIOKEYGEN_KEY_SEARCH_HELPERS_H
|
||||||
|
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "ec/types.h"
|
#include "crypto/types.h"
|
||||||
|
|
||||||
namespace eoskeygen {
|
namespace eoskeygen {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "ec/generate.h"
|
#include "crypto/ec.h"
|
||||||
#include "key_search_helpers.h"
|
#include "key_search_helpers.h"
|
||||||
#include "key_search.h"
|
#include "key_search.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "WIF.h"
|
#include "WIF.h"
|
||||||
#include "ec/generate.h"
|
#include "crypto/ec.h"
|
||||||
#include "key_search.h"
|
#include "key_search.h"
|
||||||
#include "benchmark.h"
|
#include "benchmark.h"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue