RE: RSA Decryption with OpenSSL Crypto Library

2003-10-31 Thread William Korbe III
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Ballou Sent: Friday, October 31, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: Re: RSA Decryption with OpenSSL Crypto Library The length of 258 bytes is very curious. If the server's key length is 2048 bits, then

Re: RSA Decryption with OpenSSL Crypto Library

2003-10-31 Thread Ken Ballou
The length of 258 bytes is very curious. If the server's key length is 2048 bits, then this length should be 256 bytes. Is it possible your code left in a two byte length field before the encrypted pre-master secret? - Ken On Fri, Oct 31, 2003 at 03:59:01PM -0800, Willia

RSA Decryption with OpenSSL Crypto Library

2003-10-31 Thread William Korbe III
Hello, I have been trying to decrypt the "client pre master secret" sent in a SSL handshake using the server's private key with OpenSSL's Crypto library. But RSA_private_decrypt() always returns -1! I have set up a test apache2 server with modssl and have generated the server's private key and ce