Browse Source

correct buffer size for ECDSA blinding

pull/1360/head
orignal 6 years ago
parent
commit
fbb8903774
  1. 6
      libi2pd/LeaseSet.cpp

6
libi2pd/LeaseSet.cpp

@ -468,9 +468,9 @@ namespace data @@ -468,9 +468,9 @@ namespace data
// verify blinding
char date[9];
i2p::util::GetDateString (m_PublishedTimestamp, date);
uint8_t blinded[32];
key->GetBlindedKey (date, blinded);
if (memcmp (blindedPublicKey, blinded, 32))
std::vector<uint8_t> blinded (blindedKeyLen);
key->GetBlindedKey (date, blinded.data ());
if (memcmp (blindedPublicKey, blinded.data (), blindedKeyLen))
{
LogPrint (eLogError, "LeaseSet2: blinded public key doesn't match");
return;

Loading…
Cancel
Save