mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
KDF and encryption for SessionRequest
This commit is contained in:
parent
61ec873842
commit
04388325a8
2 changed files with 44 additions and 1 deletions
|
@ -28,10 +28,19 @@ namespace transport
|
|||
std::shared_ptr<const i2p::data::RouterInfo::Address> addr = nullptr, bool peerTest = false);
|
||||
~SSU2Session ();
|
||||
|
||||
private:
|
||||
|
||||
void SendSessionRequest ();
|
||||
void EncryptHeader (i2p::crypto::ChipherBlock& header);
|
||||
void CreateHeaderMask (const uint8_t * kh1, const uint8_t * nonce1, const uint8_t * kh2, const uint8_t * nonce2);
|
||||
|
||||
private:
|
||||
|
||||
std::shared_ptr<i2p::crypto::X25519Keys> m_EphemeralKeys;
|
||||
std::unique_ptr<i2p::crypto::NoiseSymmetricState> m_NoiseState;
|
||||
std::shared_ptr<const i2p::data::RouterInfo::Address> m_Address;
|
||||
|
||||
i2p::crypto::ChipherBlock m_HeaderMask;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue