mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 12:56:38 +01:00
correct nonce for SessionCorfirmed part 2
This commit is contained in:
parent
2160001167
commit
67e501f5c7
1 changed files with 1 additions and 0 deletions
|
@ -444,6 +444,7 @@ namespace transport
|
||||||
m_EphemeralKeys->Agree (S, sharedSecret);
|
m_EphemeralKeys->Agree (S, sharedSecret);
|
||||||
m_NoiseState->MixKey (sharedSecret);
|
m_NoiseState->MixKey (sharedSecret);
|
||||||
// decrypt part2
|
// decrypt part2
|
||||||
|
memset (nonce, 0, 12);
|
||||||
uint8_t * payload = buf + 64;
|
uint8_t * payload = buf + 64;
|
||||||
std::vector<uint8_t> decryptedPayload(len - 80);
|
std::vector<uint8_t> decryptedPayload(len - 80);
|
||||||
if (!i2p::crypto::AEADChaCha20Poly1305 (payload, len - 80, m_NoiseState->m_H, 32,
|
if (!i2p::crypto::AEADChaCha20Poly1305 (payload, len - 80, m_NoiseState->m_H, 32,
|
||||||
|
|
Loading…
Add table
Reference in a new issue