Browse Source

fxied crash

pull/70/head
orignal 11 years ago
parent
commit
4341d285aa
  1. 2
      NTCPSession.cpp
  2. 2
      SSU.cpp

2
NTCPSession.cpp

@ -34,7 +34,7 @@ namespace ntcp @@ -34,7 +34,7 @@ namespace ntcp
void NTCPSession::CreateAESKey (uint8_t * pubKey, uint8_t * aesKey)
{
CryptoPP::DH dh (elgp, elgg);
uint8_t sharedKey[64];
uint8_t sharedKey[256];
if (!dh.Agree (sharedKey, m_DHKeysPair->privateKey, pubKey))
{
LogPrint ("Couldn't create shared key");

2
SSU.cpp

@ -38,7 +38,7 @@ namespace ssu @@ -38,7 +38,7 @@ namespace ssu
void SSUSession::CreateAESandMacKey (const uint8_t * pubKey, uint8_t * aesKey, uint8_t * macKey)
{
CryptoPP::DH dh (i2p::crypto::elgp, i2p::crypto::elgg);
uint8_t sharedKey[64];
uint8_t sharedKey[256];
if (!dh.Agree (sharedKey, m_DHKeysPair->privateKey, pubKey))
{
LogPrint ("Couldn't create shared key");

Loading…
Cancel
Save