From 4341d285aa6d97c0e449a021653e83741e0beec2 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 15 Apr 2014 17:44:44 -0400 Subject: [PATCH] fxied crash --- NTCPSession.cpp | 2 +- SSU.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NTCPSession.cpp b/NTCPSession.cpp index 85580813..7d53c541 100644 --- a/NTCPSession.cpp +++ b/NTCPSession.cpp @@ -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"); diff --git a/SSU.cpp b/SSU.cpp index b398a56c..dffd338a 100644 --- a/SSU.cpp +++ b/SSU.cpp @@ -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");