Re: SEC_ERROR_IO during PK11_CipherOp

2008-09-06 Thread Wan-Teh Chang
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

Re: SEC_ERROR_IO during PK11_CipherOp

2008-09-06 Thread Wan-Teh Chang
2008/9/6 Graham Leggett <[EMAIL PROTECTED]>: > > 472 SECStatus s = PK11_CipherOp(block->ctx, *out, &outl, outl, > (unsigned char*)in, inlen); > (gdb) > 474 if (s != SECSuccess) { > (gdb) > 475 PRErrorCode perr = PORT_GetError(); > (gdb) > 476 if (perr) { > (g