mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 03:37:49 +02:00
decrypt Y for NTCP2
This commit is contained in:
parent
966256ac32
commit
ee0ae0b74b
3 changed files with 30 additions and 18 deletions
|
@ -29,7 +29,7 @@ namespace transport
|
|||
|
||||
private:
|
||||
|
||||
bool KeyDerivationFunction1 (const uint8_t * rs, const uint8_t * pub, uint8_t * derived, uint8_t * ad); // for SessionRequest
|
||||
bool KeyDerivationFunction1 (const uint8_t * rs, const uint8_t * pub, uint8_t * derived); // for SessionRequest
|
||||
void CreateEphemeralKey (uint8_t * pub);
|
||||
void SendSessionRequest ();
|
||||
|
||||
|
@ -43,7 +43,7 @@ namespace transport
|
|||
bool m_IsEstablished, m_IsTerminated;
|
||||
|
||||
uint8_t m_ExpandedPrivateKey[64]; // x25519 ephemeral key
|
||||
uint8_t m_RemoteStaticKey[32], m_RemoteIV[16];
|
||||
uint8_t m_RemoteStaticKey[32], m_IV[16], m_H[32];
|
||||
uint8_t * m_SessionRequestBuffer, * m_SessionCreatedBuffer;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue