2008/9/6 Graham Leggett <[EMAIL PROTECTED]>: > Hi all, > > In my epic quest to make NSS encrypt a string, I have managed to > successfully create a key from a passphrase, and I have successfully managed > to call PK11_CreateContextBySymKey to create an encryption context. > > The next error happens at the PK11_CipherOp stage, and resolves to > SEC_ERROR_IO, which I understand means "an error has occurred". > Unfortunately it gives no more details than that. > > Can anyone confirm from the trace below whether any of the parameters used > are incorrect, or whether I have missed a step in this process?
I'm looking at our source code now to see what could go wrong. In the meantime, you can set a breakpoint in NSC_EncryptUpdate, single step in the debugger, and see where it fails and returns CKR_DEVICE_ERROR. I will report my findings later. Wan-Teh _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto