process AEAD/Chacha20/Poly1305 frame for data phase of NTCP2

This commit is contained in:
orignal 2018-06-22 15:02:49 -04:00
parent 5884852612
commit 0aa618b938
3 changed files with 53 additions and 11 deletions

View file

@ -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