Bob Ollila wrote:
>
> I have a short program which does a DSA_sign() and DSA_verify() which gives me the
>following error output using ERR_print_errors():
>
> 1792:error:0A070064::lib(10) :func(112) :reason(100):dsa_sign.c:121:
> 1792:error:0D06B078::lib(13) :func(107) :reason(120):asn1_lib.c:139:
> 1792:error:0A06E004::lib(10) :func(110) :reason(4):dsa_asn.c:92:
>
> Can anyone tell me how to determine what these errors mean? Are there error output
>methods which will give me a clearer picture of what these error codes are?
>
Check the err(3) manual page. Specifically you can call
ERR_load_crypto_strings() or use the errstr(1) command to convert these
to something meaninful.
In this case it looks like the data you are signing is too large. You
normally only sign 20 byte SHA1 digests using DSA.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]