Click here to Skip to main content
15,915,328 members
Home / Discussions / C#
   

C#

 
Generalunknown exception thrown when decrypting read-in message Pin
chau_fai_rubbish21-Mar-04 21:36
chau_fai_rubbish21-Mar-04 21:36 
GeneralRe: unknown exception thrown when decrypting read-in message Pin
chau_fai_rubbish22-Mar-04 2:34
chau_fai_rubbish22-Mar-04 2:34 
GeneralRe: unknown exception thrown when decrypting read-in message Pin
Heath Stewart22-Mar-04 3:17
protectorHeath Stewart22-Mar-04 3:17 
GeneralRe: unknown exception thrown when decrypting read-in message Pin
Heath Stewart22-Mar-04 3:23
protectorHeath Stewart22-Mar-04 3:23 
GeneralRe: unknown exception thrown when decrypting read-in message Pin
chau_fai_rubbish22-Mar-04 15:00
chau_fai_rubbish22-Mar-04 15:00 
GeneralRe: unknown exception thrown when decrypting read-in message Pin
Heath Stewart23-Mar-04 2:56
protectorHeath Stewart23-Mar-04 2:56 
GeneralRe: unknown exception thrown when decrypting read-in message Pin
terry_cyf23-Mar-04 20:40
terry_cyf23-Mar-04 20:40 
GeneralRe: unknown exception thrown when decrypting read-in message Pin
Heath Stewart24-Mar-04 2:46
protectorHeath Stewart24-Mar-04 2:46 
It not exception is being thrown, then what is being caught? Of course an exception is thrown, but you're handling it, at least that's what your code shows.

As I mentioned before, though, decryption typically expects a buffer with a size that is a power of 2 so that it has enough information to decrypt a block. If you don't provide enough information, it doesn't have enough information to decrypt a block of cipher text and would hang waiting for more, or throw an exception. Try resizing your cipher text buffer to be a power of 2 and try again.

 

Microsoft MVP, Visual C#
My Articles
GeneralFormatting Strings Pin
Maharishi Bhatia21-Mar-04 18:35
Maharishi Bhatia21-Mar-04 18:35 
GeneralRe: Formatting Strings Pin
Heath Stewart21-Mar-04 18:56
protectorHeath Stewart21-Mar-04 18:56 
GeneralRe: Formatting Strings Pin
Spanky321-Mar-04 21:12
Spanky321-Mar-04 21:12 
GeneralRe: Formatting Strings Pin
Heath Stewart22-Mar-04 3:09
protectorHeath Stewart22-Mar-04 3:09 
GeneralRe: Formatting Strings Pin
Judah Gabriel Himango22-Mar-04 4:01
sponsorJudah Gabriel Himango22-Mar-04 4:01 
GeneralRe: Formatting Strings Pin
Heath Stewart22-Mar-04 4:11
protectorHeath Stewart22-Mar-04 4:11 
GeneralRe: Formatting Strings Pin
Alvaro Mendez22-Mar-04 10:08
Alvaro Mendez22-Mar-04 10:08 
GeneralRe: Formatting Strings Pin
Heath Stewart22-Mar-04 11:45
protectorHeath Stewart22-Mar-04 11:45 
GeneralRe: Formatting Strings Pin
Alvaro Mendez22-Mar-04 10:34
Alvaro Mendez22-Mar-04 10:34 
Generalclipboard Pin
cmarmr21-Mar-04 16:49
cmarmr21-Mar-04 16:49 
GeneralRe: clipboard Pin
Heath Stewart21-Mar-04 18:51
protectorHeath Stewart21-Mar-04 18:51 
GeneralRe: clipboard Pin
cmarmr22-Mar-04 9:45
cmarmr22-Mar-04 9:45 
GeneralRe: clipboard Pin
Heath Stewart22-Mar-04 9:52
protectorHeath Stewart22-Mar-04 9:52 
GeneralRe: clipboard Pin
cmarmr23-Mar-04 3:47
cmarmr23-Mar-04 3:47 
Generalanyone help me!! Pin
lcsnatoo21-Mar-04 16:05
lcsnatoo21-Mar-04 16:05 
GeneralRe: anyone help me!! Pin
Heath Stewart21-Mar-04 18:46
protectorHeath Stewart21-Mar-04 18:46 
Questioncode to keep checking the OS if connected to the net? Pin
User 96257821-Mar-04 14:06
User 96257821-Mar-04 14:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.