Closed GoogleCodeExporter closed 9 years ago
Actually, the best way to fix this problem, I see, is to change the following
code
public byte[] Data
{
get { return m_data; }
set { m_data = value; }
}
from NetBuffer to the followin code
public byte[] Data
{
get { return m_data; }
set { m_data = value; LengthBytes = value.Length; }
}
and replace the following code
/// <summary>
/// Encrypt outgoing message
/// </summary>
public bool Encrypt(NetOutgoingMessage msg)
{
...
msg.m_data = memoryStream.ToArray();
...
}
from each encription method file with the following code
/// <summary>
/// Encrypt outgoing message
/// </summary>
public bool Encrypt(NetOutgoingMessage msg)
{
...
msg.Data = memoryStream.ToArray();
...
}
That would fix this issue.
Original comment by negrdroc...@gmail.com
on 10 Jan 2013 at 2:45
Just spent 4 hrs banging my head against a wall with AES and then I discovered
this too. Which I'd read the issues list first!
Original comment by max.kauf...@gmail.com
on 10 Oct 2014 at 2:40
Wow, this issue really snuck under the radar. Possibly since encryption is a
community contribution. Fixed in rev 379.
Original comment by lidg...@gmail.com
on 10 Oct 2014 at 7:36
Original issue reported on code.google.com by
rockers7...@gmail.com
on 24 Nov 2012 at 1:18