Hi, I'm returning 8 as pulEncryptedPartLen value, becouse that is the length that returned the OpenSLL method EVP_CipherUpdate(). Now the method C_EncryptUpdate() returns CKR_OK, because all went well in the encrypt operation apparently. Thanks in advance

Robert Relyea wrote:
Antonio Andres Espallardo wrote:

Ok, now I have a buffer which is equal to the input data size. As I said in the post, when Netscape 7.2 (and 4.7) initializes a encrypt operation (RC2 Secret Key of 16 bytes). It's ok. After that it calls the C_EncryptUpdate method of the pkcs11 module with an input data of 8 bytes. The method C_EncryptUpdate (which use openSSL functions to do the work: int result = EVP_CipherUpdate(ctx,pEncryptedPart,(int *)pulEncryptedPartLen,pPart,ulPartLen);) returns a encrypted block with a size of 8 bytes (which I think is the correct size). Well, that size not seems to be the hoped by Netscape, because it close the session (if all were ok it should call C_EncryptUpdate more times and ends with a call to C_EncryptFinal) wich opened to develope the C_Encrypt operation.
I don't understand what is happening. Thanks in advance.


Hi Antonio,

So the next questions are 1) are you returning '8' in the pulEncryptedPartLen value, and 2 what is the return code you are sending back to NSS?

bob

_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to