OPERATION_NOT_INITIALIZED Error n. 145 at ECB Decrypt

2/23/2015 10:22:13 AM
Gravatar
Total Posts 1

OPERATION_NOT_INITIALIZED Error n. 145 at ECB Decrypt

Hello,

 

We receive "OPERATION_NOT_INITIALIZED Error n. 145" on the second line of the following code. We have tried several things, and tried to look up on the documantation, but could not find the reason. Any recommendations?

Thanks

Gokhan

 

this.session.DecryptInit(Mechanism.DES3_ECB, key);        

byte[] decrypted = this.session.Decrypt(encrypted);

4/1/2015 11:40:13 AM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: OPERATION_NOT_INITIALIZED Error n. 145 at ECB Decrypt

Did you check the return code of this.session.DecryptInit(Mechanism.DES3_ECB, key)?

Probably this method is returning an error related to the key you passed