load eepsite keys

This commit is contained in:
orignal 2014-03-19 16:44:03 -04:00
parent c855d8b413
commit 72cb35fcc0
2 changed files with 9 additions and 0 deletions

View file

@ -19,6 +19,13 @@ namespace data
return *this;
}
PrivateKeys& PrivateKeys::operator=(const Keys& keys)
{
pub = keys;
memcpy (privateKey, keys.privateKey, 276); // 256 + 20
return *this;
}
IdentHash CalculateIdentHash (const Identity& identity)
{
IdentHash hash;

View file

@ -33,6 +33,8 @@ namespace data
Identity pub;
uint8_t privateKey[256];
uint8_t signingPrivateKey[20];
PrivateKeys& operator=(const Keys& keys);
};
#pragma pack()