Re: Problem with DSA signing/verification

2013-12-06 Thread Matt Caswell
On 5 December 2013 19:34, Dave Thompson wrote: >> Well looking at the code where this error is raised: >> >> /* XXX: surely this is wrong - if ret is 0, it just didn't verify; >>there is no error in BN. Test should be ret == -1 (Ben) */ >> if (ret != 1) DSAerr(DSA_F_DSA_DO_VERIFY,E

RE: Problem with DSA signing/verification

2013-12-05 Thread Dave Thompson
> From: owner-openssl-users > Sent: Wednesday, December 04, 2013 18:32 > On 4 December 2013 22:38, Dave Thompson > wrote: > > In addition to the misplaced paren already noted, and also a surplus paren, > > which I'll assume were typos since they wouldn't have compiled, > > I think it could compi

Re: Problem with DSA signing/verification

2013-12-04 Thread Matt Caswell
On 4 December 2013 22:38, Dave Thompson wrote: > In addition to the misplaced paren already noted, and also a surplus paren, > > which I’ll assume were typos since they wouldn’t have compiled, > I think it could compile (unless there is another surplus paren I haven't seen?): EVP_SignInit(ctx, E

RE: Problem with DSA signing/verification

2013-12-04 Thread Dave Thompson
] On Behalf Of Aastha Mehta Sent: Tuesday, December 03, 2013 05:36 To: openssl-users@openssl.org Subject: *** Spam *** Problem with DSA signing/verification Hello, I wrote a simple code to sign and verify using DSA keys, but I am facing some problem with verification and I cannot

Re: Problem with DSA signing/verification

2013-12-04 Thread Matt Caswell
On 3 December 2013 10:36, Aastha Mehta wrote: > Hello, > > I wrote a simple code to sign and verify using DSA keys, but I am facing > some problem with verification and I cannot figure it out. This is the error > I get: > error:0A071003:dsa routines:DSA_do_verify:BN lib > > I know the error comes

Problem with DSA signing/verification

2013-12-04 Thread Aastha Mehta
Hello, I wrote a simple code to sign and verify using DSA keys, but I am facing some problem with verification and I cannot figure it out. This is the error I get: error:0A071003:dsa routines:DSA_do_verify:BN lib I know the error comes from EVP_VerifyFinal, but I don't exactly know why. My code