rai mahua wrote:
Hi,

I have a case wherein I get the message that has been
signed + the R & S value of the DSA generated
signature.

How do I verify this using openssl lib.

put the r and s value into a DSA_SIG structure (i.e. something like: DSA_SIG *dsasig = DSA_SIG_new(); BN_bin2bn(r, r_len, dsasig->r); BN_bin2bn(s, s_len, dsasig->s); ) and then use DSA_do_verify with sha-1 hash of the message (and, of course, the public key in the DSA object).

Nils

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

Reply via email to