C_DecryptInit. --> Mechanism: CKM_DES3_CBC. --> Key length: 24 bytes. --> IV: <195> <128> <252> <112> <101> <170> <232> <250> END C_DecryptInit.
C_DecryptUpdate.
-->Input Data(16 bytes): <71> <66> <47> <b9> <9> <b4> <9e> <fc> <61> <4c> <55> <ca> <8e> <39> <c> <93>
--> Output Data (16 bytes): <43> <6f> <6e> <74> <65> <6e> <74> <2d> <54> <79> <70> <65> <3a> <20> <74> <65>
END C_DecryptUpdate.
C_DecryptUpdate. -->Input Data(8 bytes): <1b> <5f> <14> <8> <be> <8a> <7d> <6> --> Output Data (8 bytes): <78> <74> <2f> <70> <6c> <61> <69> <6e> END C_DecryptUpdate.
C_DecryptUpdate.
-->Input Data(48 bytes): <8> <86> <89> <15> <c1> <87> <c3> <58> <45> <fe> <35> <ba> <dd> <67> <71> <be> <15> <e2> <39> <1d> <39> <91> <37> <58> <bc> <7d> <81> <f4> <af> <aa> <63> <db> <f> <ce> <49> <7a> <e> <72> <16> <e1> <df> <59> <f9> <81> <84> <bc> <6b> <97>
--> Output Data (48 bytes): <3b> <20> <63> <68> <61> <72> <73> <65> <74> <3d> <49> <53> <4f> <2d> <38> <38> <35> <39> <2d> <31> <3b> <20> <66> <6f> <72> <6d> <61> <74> <3d> <66> <6c> <6f> <77> <65> <64> <d> <a> <43> <6f> <6e> <74> <65> <6e> <74> <2d> <54> <72> <61>
END C_DecryptUpdate.
..........
And the last C_DecryptUpdate call:
C_DecryptUpdate. -->Input Data(8 bytes): <12> <65> <bc> <d2> <4> <17> <89> <20> --> Output Data (8 bytes): <d> <a> <6> <6> <6> <6> <6> <6> END C_DecryptUpdate.
Now I don't know what happens but Netscape don't finalize the decrypt operation correctly calling C_DecryptFinal, but he close the session. The message is showed decrypted in the mail manager, but Netscape hasn't finalized correctly the decrypt operation.
Always, in the last block decrypted, appear some bytes which I think it doesn't must appear (STX, SOH...). What can be happening?
Appart of this, How could I specify in a Windows 2000 operating system that netscape uses my pkcs11 module by default to develop all the operations needed?.
Thanks in advance.
Antonio.
Nelson B wrote:
Antonio Andres Espallardo wrote:
Hi everybody. I'm having some problems with a PKCS11 module I've developed in encrypt/decrypt methods. I can't understand the behavior
C_DecryptUpdate.
--> Input Data(16 bytes): <22> <b2> <b5> <62> <f1> <8c> <c2> <11> <78> <2d> <88> <bd> <31> <4> <33> <5e>
--> Output data(8 bytes): <43> <6f> <6e> <74> <65> <6e> <74> <2d>
END C_DecryptUpdate.
Now Netscape close the session and finalizes the decrypt operation.
That last DecryptUpdate returned the wrong amount of output information IINM.
_______________________________________________ mozilla-crypto mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-crypto
