mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
put previously global error handling and key hashes into ptx (pcp context) to make libpcp threadsafe.
This commit is contained in:
@@ -35,6 +35,7 @@ namespace pcp {
|
||||
|
||||
class Crypto {
|
||||
private:
|
||||
PcpContext PTX;
|
||||
bool havevault;
|
||||
|
||||
public:
|
||||
@@ -43,8 +44,8 @@ namespace pcp {
|
||||
Vault vault;
|
||||
|
||||
// constructors
|
||||
Crypto(Key &skey, PubKey &pkey);
|
||||
Crypto(Vault &v, Key &skey, PubKey &pkey);
|
||||
Crypto(PcpContext C, Key &skey, PubKey &pkey);
|
||||
Crypto(PcpContext C, Vault &v, Key &skey, PubKey &pkey);
|
||||
|
||||
// PK encryption methods
|
||||
// sender pubkey is P
|
||||
|
||||
Reference in New Issue
Block a user