Re: BIO_new_mem_buf() doesn't work after RSA_private_decrypt() failure.

2006-06-20 Thread Richard Levitte - VMS Whacker
In message <[EMAIL PROTECTED]> on Wed, 21 Jun 2006 10:44:33 +0900, Tatsuya Tsurukawa <[EMAIL PROTECTED]> said: Tsurukawa.Tatsuya> It seems I need to clear error queue after private Tsurukawa.Tatsuya> decryption error, but does the status of error Tsurukawa.Tatsuya> queue actually affect to the be

Re: BIO_new_mem_buf() doesn't work after RSA_private_decrypt() failure.

2006-06-20 Thread Tatsuya Tsurukawa
Dear Richard, Thank you for your quick answer. I did nothing after RSA_private_decrypt() error(-1) with a wrong private key and called ERR_get_error() right after BIO_new_mem_buf() returned NULL as follows. iRet = RSA_private_decrypt(); // provide wrong private key if( iRet == -1 ){ //

Re: BIO_new_mem_buf() doesn't work after RSA_private_decrypt() failure.

2006-06-20 Thread Richard Levitte - VMS Whacker
In message <[EMAIL PROTECTED]> on Tue, 20 Jun 2006 21:16:49 +0900, Tatsuya Tsurukawa <[EMAIL PROTECTED]> said: Tsurukawa.Tatsuya> bioPtr = BIO_new_mem_buf( InputPEMstring, -1 ); Tsurukawa.Tatsuya> : Tsurukawa.Tatsuya> prvkey = PEM_read_bio_RSAPrivateKey( bioPtr, NULL, NULL, NULL ); Tsurukawa.T

BIO_new_mem_buf() doesn't work after RSA_private_decrypt() failure.

2006-06-20 Thread Tatsuya Tsurukawa
Hi all, I have written a program which does RSA_private_decrypt() repeatedly with a private key given with PEM format. I also derive private key with BIO_new_mem_buf() and PEM_read_bio_RSAPrivateKey() functions, so the brief code is as follows. bioPtr = BIO_new_mem_buf( InputPEMstring, -1 );