use HKDF for NTCP2 key derivation data phase

This commit is contained in:
orignal 2019-12-18 20:45:47 -05:00
parent 19a88300c6
commit 599ec62bb0
4 changed files with 32 additions and 24 deletions

View file

@ -195,7 +195,7 @@ namespace transport
std::unique_ptr<NTCP2Establisher> m_Establisher;
// data phase
uint8_t m_Kab[33], m_Kba[32], m_Sipkeysab[33], m_Sipkeysba[32];
uint8_t m_Kab[32], m_Kba[32], m_Sipkeysab[32], m_Sipkeysba[32];
const uint8_t * m_SendKey, * m_ReceiveKey;
#if OPENSSL_SIPHASH
EVP_PKEY * m_SendSipKey, * m_ReceiveSipKey;