moved encryption keys from TunnelPool to StreamingDestination

This commit is contained in:
orignal 2014-04-01 18:58:47 -04:00
parent 9f0c0b3b35
commit c600be59b1
6 changed files with 16 additions and 9 deletions

View file

@ -1,4 +1,3 @@
#include <cryptopp/dh.h>
#include "I2PEndian.h"
#include "CryptoConst.h"
#include "Tunnel.h"
@ -15,9 +14,6 @@ namespace tunnel
TunnelPool::TunnelPool (i2p::data::LocalDestination& localDestination, int numTunnels):
m_LocalDestination (localDestination), m_NumTunnels (numTunnels), m_LastOutboundTunnel (nullptr)
{
CryptoPP::AutoSeededRandomPool rnd;
CryptoPP::DH dh (i2p::crypto::elgp, i2p::crypto::elgg);
dh.GenerateKeyPair(i2p::context.GetRandomNumberGenerator (), m_EncryptionPrivateKey, m_EncryptionPublicKey);
}
TunnelPool::~TunnelPool ()