mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 03:37:49 +02:00
process AEAD/Chacha20/Poly1305 frame for data phase of NTCP2
This commit is contained in:
parent
5884852612
commit
0aa618b938
3 changed files with 53 additions and 11 deletions
|
@ -55,6 +55,7 @@ namespace transport
|
|||
void HandleReceivedLength (const boost::system::error_code& ecode, std::size_t bytes_transferred);
|
||||
void Receive ();
|
||||
void HandleReceived (const boost::system::error_code& ecode, std::size_t bytes_transferred);
|
||||
void ProcessNextFrame (const uint8_t * frame, size_t len);
|
||||
|
||||
private:
|
||||
|
||||
|
@ -71,6 +72,7 @@ namespace transport
|
|||
uint16_t m_NextReceivedLen;
|
||||
uint8_t * m_NextReceivedBuffer;
|
||||
uint8_t m_ReceiveIV[8];
|
||||
uint64_t m_ReceiveSequenceNumber;
|
||||
};
|
||||
|
||||
class NTCP2Server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue