NAME
DSAdosign, DSAdoverify - raw DSA signature operations
SYNOPSIS
#include
DSASIG *DSAdosign(const unsigned char *dgst, int dlen, DSA *dsa); int DSAdoverify(const unsigned char *dgst, int dgstlen, DSASIG *sig, DSA *dsa);DESCRIPTION
DSAdosign() computes a digital signature on the lleenn byte message digest ddggsstt using the private key ddssaa and returns it in a newly allocated DDSSAASSIIGG structure. DSAsignsetup(3) may be used to precompute part of the signingoperation in case signature generation is time-critical.
DSAdoverify() verifies that the signature ssiigg matches a given message digest ddggsstt of size lleenn. ddssaa is the signer's public key.RETURN VALUES
DSAdosign() returns the signature, NULL on error. DSAdoverify()returns 1 for a valid signature, 0 for an incorrect signature and -1 on
error. The error codes can be obtained by ERRgeterror(3).SEE ALSO
dsa(3), ERRgeterror(3), rand(3), DSASIGnew(3), DSAsign(3) HISTORY DSAdosign() and DSAdoverify() were added in OpenSSL 0.9.3.0.9.7l 2002-09-25 DSAdosign(3)