mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Added config file read/write infrastructure with RapidJSON. Added key pair generation and sign/verify helper with libsodium.
16 lines
341 B
C++
16 lines
341 B
C++
#ifndef _HP_CRYPTO_H_
|
|
#define _HP_CRYPTO_H_
|
|
|
|
using namespace std;
|
|
|
|
namespace crypto
|
|
{
|
|
|
|
int init();
|
|
unsigned long long get_sig_len();
|
|
void sign(const unsigned char *msg, unsigned long long msg_len, unsigned char *sig);
|
|
bool verify(const unsigned char *msg, unsigned long long msg_len, const unsigned char *sig);
|
|
|
|
} // namespace crypto
|
|
|
|
#endif |