Files
hpcore/src/crypto.h
Ravin Perera 0382475de1 Implemented config and crypto infrastructure (#2)
Added config file read/write infrastructure with RapidJSON.
Added key pair generation and sign/verify helper with libsodium.
2019-09-26 19:05:23 +05:30

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