mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-18 20:30:58 +01:00
catch up with api and system changes in libpcp. added c++ buffer class as well
This commit is contained in:
@@ -48,12 +48,10 @@ namespace pcp {
|
||||
|
||||
// PK encryption methods
|
||||
// sender pubkey is P
|
||||
std::string encrypt(std::vector<unsigned char> message);
|
||||
std::string encrypt(std::string message);
|
||||
std::string encrypt(unsigned char *message, size_t mlen);
|
||||
bool encrypt(FILE *in, FILE *out, bool sign);
|
||||
|
||||
// decrypt using P or use vault if defined
|
||||
ResultSet decrypt(std::string cipher);
|
||||
bool decrypt(FILE *in, FILE *out, bool verify);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user