Re: DSA signing and verification

2008-06-21 Thread Siddhartha Chhabra
; >>>>cannot convert parameter 1 from 'int (__cdecl *)(void)' to >>>>'i2d_of_void (__cdecl *)' >>>> This conversion requires a reinterpret_cast, a C-style >>>>cast or function-style cast >>>> >&

Re: DSA signing and verification

2008-06-21 Thread Siddhartha Chhabra
gt; >>> Thanks again >>> >>> >>> >>> On Sat, Jun 21, 2008 at 8:15 AM, Bill Colvin <[EMAIL PROTECTED]>> [EMAIL PROTECTED]>> wrote: >>> >>>0.9.8 have used it with f, g and h >>> >>> >>>Bill &g

Re: DSA signing and verification

2008-06-21 Thread Thomas Mangold
;] *On Behalf Of *Siddhartha Chhabra *Sent:* June 20, 2008 10:07 PM *To:* openssl-users@openssl.org <mailto:openssl-users@openssl.org> <mailto:openssl-users@openssl.org <mailto:openssl-users@openssl.org>> *

Re: DSA signing and verification

2008-06-21 Thread Siddhartha Chhabra
again >> >> >> >> On Sat, Jun 21, 2008 at 8:15 AM, Bill Colvin <[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote: >> >>0.9.8 have used it with f, g and h >> >> >> Bill >> >> >>* From: * [EMAIL PROTECTED] >

Re: DSA signing and verification

2008-06-21 Thread Thomas Mangold
;mailto:[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>] *On Behalf Of *Siddhartha Chhabra *Sent:* June 20, 2008 10:07 PM *To:* openssl-users@openssl.org <mailto:openssl-users@openssl.org> *Subject:* Re: DSA signing and verification

Re: DSA signing and verification

2008-06-21 Thread Siddhartha Chhabra
t; [EMAIL PROTECTED] *On Behalf Of *Siddhartha Chhabra > *Sent:* June 20, 2008 10:07 PM > > *To:* openssl-users@openssl.org > *Subject:* Re: DSA signing and verification > > > > What version of the library are you using ? > > On Fri, Jun 20, 2008 at 9:01 PM, Siddhartha Chh

RE: DSA signing and verification

2008-06-21 Thread Bill Colvin
0.9.8 have used it with f, g and h Bill From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Siddhartha Chhabra Sent: June 20, 2008 10:07 PM To: openssl-users@openssl.org Subject: Re: DSA signing and verification What version of the library

Re: DSA signing and verification

2008-06-20 Thread Siddhartha Chhabra
t; >> Bill >> ---------- >> >> *From:* [EMAIL PROTECTED] [mailto: >> [EMAIL PROTECTED] *On Behalf Of *Siddhartha Chhabra >> *Sent:* June 20, 2008 8:39 PM >> *To:* openssl-users@openssl.org >> *Subject:* Re: DSA signing and verification

Re: DSA signing and verification

2008-06-20 Thread Siddhartha Chhabra
> > > > Bill > -- > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Siddhartha Chhabra > *Sent:* June 20, 2008 8:39 PM > *To:* openssl-users@openssl.org > *Subject:* Re: DSA signing and verification > >

RE: DSA signing and verification

2008-06-20 Thread Bill Colvin
signing and verification On trying the macros, it gives the following errors c:\se_simulation2\verificationserver\verifier\verifier\verifier.cpp(201) : error C2664: 'PEM_ASN1_write' : cannot convert parameter 1 from 'int (__cdecl *)(void)' to 'i2d_of_void (__cdecl *)'

Re: DSA signing and verification

2008-06-20 Thread Siddhartha Chhabra
On trying the macros, it gives the following errors c:\se_simulation2\verificationserver\verifier\verifier\verifier.cpp(201) : error C2664: 'PEM_ASN1_write' : cannot convert parameter 1 from 'int (__cdecl *)(void)' to 'i2d_of_void (__cdecl *)' This conversion requires a reinterpret_cast, a

Re: DSA signing and verification

2008-06-20 Thread Siddhartha Chhabra
I will try the method that Bill just mentioned and hope that it works, Thanks again, but I would still like to know the problem with the way I am trying to do stuff. Thanks On Fri, Jun 20, 2008 at 4:58 PM, Siddhartha Chhabra < [EMAIL PROTECTED]> wrote: > Thanks for your quick replies, however, I

Re: DSA signing and verification

2008-06-20 Thread Siddhartha Chhabra
Thanks for your quick replies, however, I did not understand it clearly, I am very new to OpenSSL Here is what I am doing in my code dsa=DSA_generate_parameters(1024,seed,20,&counter,&h,cb,bio_err); DSA_generate_key(dsa) Now I have the keys generated. Now if I say SHA1(sigbuf,11,dgst); /

RE: DSA signing and verification

2008-06-20 Thread Bill Colvin
I had a similar problem. I found I had to define my own macros for this as they were not in the OpenSSL set. #define PEM_write_DSAPublicKey(fp,x) \ PEM_ASN1_write((int (*)())i2d_DSAPublicKey,\ PEM_STRING_DSA_PUBLIC,fp,(char *)x,NULL,NULL,0,NULL,NULL) #define PEM_read_

Re: DSA signing and verification

2008-06-20 Thread javierm
Hi Siddhartha: It's never a problem, but the procedure is as follows: 1.- You sign with private key and certificate connected with that key 2.- If you then encrypt, you encrypt with the certificate of your counterpart or recepient When the recepient gets the encrypted block of data, he decrypts