|
|
@ -5,6 +5,7 @@ |
|
|
|
#include <cryptopp/dsa.h> |
|
|
|
#include <cryptopp/dsa.h> |
|
|
|
#include "util/base64.h" |
|
|
|
#include "util/base64.h" |
|
|
|
#include "crypto/CryptoConst.h" |
|
|
|
#include "crypto/CryptoConst.h" |
|
|
|
|
|
|
|
#include "crypto/Signature.h" |
|
|
|
#include "crypto/ElGamal.h" |
|
|
|
#include "crypto/ElGamal.h" |
|
|
|
#include "RouterContext.h" |
|
|
|
#include "RouterContext.h" |
|
|
|
#include "Identity.h" |
|
|
|
#include "Identity.h" |
|
|
@ -370,6 +371,7 @@ namespace data |
|
|
|
delete verifier; |
|
|
|
delete verifier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PrivateKeys& PrivateKeys::operator=(const Keys& keys) |
|
|
|
PrivateKeys& PrivateKeys::operator=(const Keys& keys) |
|
|
|
{ |
|
|
|
{ |
|
|
|
m_Public = Identity (keys); |
|
|
|
m_Public = Identity (keys); |
|
|
@ -392,6 +394,11 @@ namespace data |
|
|
|
return *this; |
|
|
|
return *this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PrivateKeys::~PrivateKeys() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
delete m_Signer; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
size_t PrivateKeys::FromBuffer (const uint8_t * buf, size_t len) |
|
|
|
size_t PrivateKeys::FromBuffer (const uint8_t * buf, size_t len) |
|
|
|
{ |
|
|
|
{ |
|
|
|
size_t ret = m_Public.FromBuffer (buf, len); |
|
|
|
size_t ret = m_Public.FromBuffer (buf, len); |
|
|
|