different in and out buffers for tunnel encryption

This commit is contained in:
orignal 2015-06-21 17:05:01 -04:00
parent 9c9401ce2f
commit 1fc50a59f5
4 changed files with 28 additions and 26 deletions

View file

@ -22,7 +22,7 @@ namespace tunnel
void TransitTunnel::EncryptTunnelMsg (std::shared_ptr<I2NPMessage> tunnelMsg)
{
m_Encryption.Encrypt (tunnelMsg->GetPayload () + 4);
m_Encryption.Encrypt (tunnelMsg->GetPayload () + 4, tunnelMsg->GetPayload () + 4);
}
TransitTunnelParticipant::~TransitTunnelParticipant ()