Great, thanks!

Nils Larsch wrote:

> Hi Frank,
>
> Frank wrote:
> > Marcus,
> >     Thanks.  But that example is a little confussing.  First what type of
> > signature are you doing, RSA, DSA?
>
> If your are using the EVP_Sign{Init|Update|Final} functions (as in demos/
> sign/sign.c) the type of the signature (RSA, DSA, ECDSA) is specified
> by the private key (please read the EVP_SignUpdate manpage).
>
> > I see it does a sha1 hash to perform the
> > signature on.  Also where does RSA_sign() function come into play?
>
> EVP_SignFinal() calls RSA_sign() internally
>
> > Is this
> > example the new way or old way?  Is RSA_sign the new way or old way?
>
> I would recommend the use of the high level EVP_Sign* API.
>
> Regards,
> Nils
>
> > "marcus.carey" wrote:
> > > Look in the demos directory of the Openssl distribution.
> > >
> > > ----- Original Message -----
> > > From: "Frank" <[EMAIL PROTECTED]>
> > > To: "Openssl user grp" <[EMAIL PROTECTED]>
> > > Sent: Monday, November 11, 2002 7:51 AM
> > > Subject: Examples of RSA/DSA signing of data
> > >
> > > > I was wondering if there where any examples of using RSA and DSA to
> > > > sign data/verify?  The man pages are not exactly straight forward on
> > > > what you have to do. I just want to sign some data.  I can assume the
> > > > certs are in a file for everyone.  I know it's not as easy as calling
> > > > RSA_sign, RSA_verify as they need lots of information.  I think the
> > > > biggest issue I have is how to populate the RSA structure with the
> > > > private & public key from the cert.
> > > >
> > > > Thanks,
> > > >
> > > > Frank
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to