Browse Source

correct padding offset

pull/1797/head
orignal 2 years ago
parent
commit
b2767304e9
  1. 2
      libi2pd/Identity.cpp

2
libi2pd/Identity.cpp

@ -55,7 +55,7 @@ namespace data @@ -55,7 +55,7 @@ namespace data
{
memcpy (m_StandardIdentity.publicKey, publicKey ? publicKey : randomPaddingBlock, 32);
for (int i = 0; i < 7; i++) // 224 bytes
memcpy (m_StandardIdentity.publicKey + 32*i, randomPaddingBlock, 32);
memcpy (m_StandardIdentity.publicKey + 32*(i + 1), randomPaddingBlock, 32);
}
else
{

Loading…
Cancel
Save