mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:54:01 +01:00
correct outer cipher text len
This commit is contained in:
parent
0b5509a1ed
commit
80765a797b
|
@ -834,7 +834,11 @@ namespace data
|
|||
{
|
||||
if (authType == ENCRYPTED_LEASESET_AUTH_TYPE_DH) layer1Flags |= 0x01; // DH, authentication scheme 0, auth bit 1
|
||||
else if (authType == ENCRYPTED_LEASESET_AUTH_TYPE_PSK) layer1Flags |= 0x03; // PSK, authentication scheme 1, auth bit 1
|
||||
if (layer1Flags) m_BufferLen += authKeys->size ()*40 + 2; // auth data len
|
||||
if (layer1Flags)
|
||||
{
|
||||
m_BufferLen += authKeys->size ()*40 + 2; // auth data len
|
||||
lenOuterCiphertext += authKeys->size ()*40 + 2;
|
||||
}
|
||||
}
|
||||
m_Buffer = new uint8_t[m_BufferLen + 1];
|
||||
m_Buffer[0] = NETDB_STORE_TYPE_ENCRYPTED_LEASESET2;
|
||||
|
|
Loading…
Reference in a new issue