added pcpstream usage to signature lib code as well

This commit is contained in:
TLINDEN
2014-02-15 17:39:16 +01:00
parent e78269fceb
commit cf8402aec0
6 changed files with 116 additions and 54 deletions

View File

@@ -43,6 +43,7 @@ namespace pcp {
Key S;
Vault vault;
unsigned char *sig;
PubKey Signedby;
// constructors
Signature(Key &skey); // sign only
@@ -57,6 +58,7 @@ namespace pcp {
// sender pubkey is P
unsigned char *sign(std::vector<unsigned char> message);
unsigned char *sign(unsigned char *message, size_t mlen);
unsigned char *sign(Pcpstream *message);
// verify using P or use vault if defined
bool verify(std::vector<unsigned char> message);