On Thu, May 30, 2002 at 02:09:38PM +0200, Hellan,Kim KHE wrote: > Hi Vadim > > Great! > It works fine. When I got your mail I was just getting ready to test this function. > This public key I have loaded, shall be used to verify a signature. > I have the signature as a 128 byte binary blob. > > I have been looking at the RSA_public_decrypt() function, but I'm not quite sure how >it works. > How can I verify a signature without specifying what was signed in the first place?
Public key is normally used to recover the digest of something-to-be-signed and memcmp() it to another one. That is, one need a hash of a document, not necessary the document. hope this fits, Vadim > > Thanks for all your help, > Kim > > -----Oprindelig meddelelse----- > Fra: Vadim Fedukovich [mailto:[EMAIL PROTECTED]] > Sendt: 30. maj 2002 12:15 > Til: [EMAIL PROTECTED] > Emne: Re: Format of RSA public key ? > > > On Thu, May 30, 2002 at 08:59:59AM +0200, Hellan,Kim KHE wrote: > > Hi Vadim > > > > I should have been more specific. > > I know it is modulus and public exponent, but what I'm looking for is some OpenSSL >function to load this key into a EVP_PKEY structure. > > > > Any ideas? > > d2i_RSAPublicKey() and EVP_PKEY_assign_RSA() should work > > hope this helps, > Vadim > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]