Re: EVP_Open* with a public key

2009-07-26 Thread Jeremy R.
Okay, forgive my ignorance, but isn't the most common way of signing data simply taking a cryptographic hash (SHA-1, RIPEMD-160, WHIRLPOOL, etc.) and then encrypting it with a public-key technology? By definition, isn't any public-key technology (including RSA) guaranteed to make it impossi

read rsa keys

2009-07-26 Thread Neil Dugan
Hi, I have been trying to read the keys generated by "openssl genrsa ..." and "openssl rsa -pubout ..." commands. I successfully (according to the return code) read the private key with if (in = BIO_new_file("rsakey.pem", "r")) { int ok; printf ("Created private BIO\n");

Re: read rsa keys

2009-07-26 Thread Dr. Stephen Henson
On Mon, Jul 27, 2009, Neil Dugan wrote: > Hi, > > I have been trying to read the keys generated by "openssl genrsa ..." and > "openssl rsa -pubout ..." commands. > > I successfully (according to the return code) read the private key with > > if (in = BIO_new_file("rsakey.pem", "r")) { > int

Fwd: where to check error# and translate it to human readable format?

2009-07-26 Thread loody
Dear all: When executing my sample code, I got the message below: error:0406B07A:lib(4):func(107):reason(122) My question are: 1. after checking crypto/err/err.h    #define ERR_LIB_RSA         4    the error seems comes from RSA, but how can I find the code name of func and reason? 2. is there any