Erik Leunissen wrote:
L.S.

I'm having a problem using DSA_verify. The actual call in my C program (including some context), the results on stdout and lookup of the meaning of openssl error codes are given below. I still cannot conclude from the "meaning" of the error messages what I've done wrong. My initial guess was that some input (hash, sig, ..) has a bad size, but I can't think of which input that could be.

Can any body please help me to find what's wrong
...
==>    result = DSA_verify(NID_sha1, hash, 20, \
            sig, 20, dsa);

sure that your signature is 20 bytes long, as it is a structure containing two 160 bit numbers it seems a little bit short to me :)

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

Reply via email to