mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
load eepsite keys
This commit is contained in:
@@ -19,6 +19,13 @@ namespace data
|
|||||||
return *this;
|
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 CalculateIdentHash (const Identity& identity)
|
||||||
{
|
{
|
||||||
IdentHash hash;
|
IdentHash hash;
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ namespace data
|
|||||||
Identity pub;
|
Identity pub;
|
||||||
uint8_t privateKey[256];
|
uint8_t privateKey[256];
|
||||||
uint8_t signingPrivateKey[20];
|
uint8_t signingPrivateKey[20];
|
||||||
|
|
||||||
|
PrivateKeys& operator=(const Keys& keys);
|
||||||
};
|
};
|
||||||
|
|
||||||
#pragma pack()
|
#pragma pack()
|
||||||
|
|||||||
Reference in New Issue
Block a user