mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-07 07:44:13 +00:00
correct buffer size for ECDSA blinding
This commit is contained in:
parent
e8cac91bb7
commit
fbb8903774
@ -468,9 +468,9 @@ namespace data
|
|||||||
// verify blinding
|
// verify blinding
|
||||||
char date[9];
|
char date[9];
|
||||||
i2p::util::GetDateString (m_PublishedTimestamp, date);
|
i2p::util::GetDateString (m_PublishedTimestamp, date);
|
||||||
uint8_t blinded[32];
|
std::vector<uint8_t> blinded (blindedKeyLen);
|
||||||
key->GetBlindedKey (date, blinded);
|
key->GetBlindedKey (date, blinded.data ());
|
||||||
if (memcmp (blindedPublicKey, blinded, 32))
|
if (memcmp (blindedPublicKey, blinded.data (), blindedKeyLen))
|
||||||
{
|
{
|
||||||
LogPrint (eLogError, "LeaseSet2: blinded public key doesn't match");
|
LogPrint (eLogError, "LeaseSet2: blinded public key doesn't match");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user