Re: Errors reading public key from BIO

2007-08-15 Thread Dan Spirlock
Hello Steve, Thank you very much for you help. It worked like a charm. Regards, Dan On Aug 15, 2007, at 2:22 PM, Dr. Stephen Henson wrote: On Wed, Aug 15, 2007, Dan Spirlock wrote: Hello, I'm working on an application where I'd like to have the public key stored in a local va

Errors reading public key from BIO

2007-08-15 Thread Dan Spirlock
Hello, I'm working on an application where I'd like to have the public key stored in a local variable and compiled with the app, but I'm getting a runtime error when I try to read the public key after it has been stored in a BIO_mem_buf. I've tried two different ways, but I get the same

Re: Problems with RSA encryption/decryption

2007-08-13 Thread Dan Spirlock
Hi Marek and David, Thank you both for your help. I applied both of your advice and It looks like I've got things working now. As David said I was not keeping track of the size of the encoded data, thus when it came time to decrypt I was providing the wrong value in the flen parameter.

Problems with RSA encryption/decryption

2007-08-13 Thread Dan Spirlock
Hello, Extreme noob to openssl, and am running into problems using the crypto library for RSA encryption and decryption. For now I'm just putting together a simplistic test application to get a feel for using the openssl libs. The problem I'm having is when I try to decrypt an encrypte