by Jared Larsen [jared at zemnott dot com] posted on 2005/08/25 |
|
Greetings,
I'm using the SSL library to receive data from a database server. The dataset I get back is quite large (6000+ email addresses) and when that set is returned, the SSL library causes an exception.
Error information below, the exception is thrown in the first Array.Copy, it seems as though the remoteMac.length param is larger than the message.length param.
Number was less than the array's lower bound in the first dimension. Parameter name: srcIndex
Line 248: m_BulkDecryption.TransformBlock(message.fragment, 0, message.length, decrypted, 0);
Line 249: remoteMac = new byte[m_RemoteHasher.HashSize / 8];
Line 250: Array.Copy(decrypted, message.length - remoteMac.Length, remoteMac, 0, remoteMac.Length);
Line 251: message.fragment = new byte[decrypted.Length - remoteMac.Length];
Line 252: Array.Copy(decrypted, 0, message.fragment, 0, message.fragment.Length);
Any help is appreciated, as this application is mission critical. |