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-21 Thread Siddhartha Chhabra
@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 Chhabra [EMAIL PROTECTED] wrote: I tried that but I think it has to do with the cast applied to the functions as it says cannot convert parameter

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 *Subject:* Re: DSA signing and verification What version of the library are you using ? On Fri, Jun 20, 2008 at 9:01 PM, Siddhartha

Re: DSA signing and verification

2008-06-21 Thread Siddhartha Chhabra
, 2008 10:07 PM *To:* openssl-users@openssl.org mailto: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 Chhabra [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote

Re: DSA signing and verification

2008-06-21 Thread Thomas Mangold
-users@openssl.org mailto: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 Chhabra [EMAIL PROTECTED] mailto:[EMAIL

Re: DSA signing and verification

2008-06-21 Thread Siddhartha Chhabra
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 What version of the library are you using ? On Fri, Jun 20, 2008 at 9:01 PM

Re: DSA signing and verification

2008-06-21 Thread Siddhartha Chhabra
PROTECTED] 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 What

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

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

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 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
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,

RE: DSA signing and verification

2008-06-20 Thread Bill Colvin
@openssl.org Subject: Re: DSA 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
-- *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 On trying the macros, it gives the following errors c:\se_simulation2\verificationserver\verifier

Re: DSA signing and verification

2008-06-20 Thread Siddhartha Chhabra
:* Re: DSA 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