mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
SSUHeader and authenticate added
This commit is contained in:
parent
27426a6023
commit
8d4b98c83a
3 changed files with 30 additions and 3 deletions
10
SSU.cpp
10
SSU.cpp
|
@ -14,6 +14,16 @@ namespace ssu
|
|||
|
||||
void SSUSession::ProcessNextMessage (uint8_t * buf, std::size_t len)
|
||||
{
|
||||
switch (m_State)
|
||||
{
|
||||
default:
|
||||
LogPrint ("SSU state not implemented yet");
|
||||
}
|
||||
}
|
||||
|
||||
void SSUSession::Authenticate (uint8_t * buf, size_t len, uint8_t * aesKey, uint8_t * iv, uint8_t * macKey)
|
||||
{
|
||||
m_Encryption.SetKeyWithIV (aesKey, 32, iv);
|
||||
}
|
||||
|
||||
SSUServer::SSUServer (boost::asio::io_service& service, int port):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue