News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
Exception thrown decrypting very large SSL messages  
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.

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.