NAME
RSAsignASN1OCTETSTRING, RSAverifyASN1OCTETSTRING - RSA
signaturesSYNOPSIS
#include
int RSAsignASN1OCTETSTRING(int dummy, unsigned char *m, unsigned int mlen, unsigned char *sigret, unsigned int *siglen, RSA *rsa); int RSAverifyASN1OCTETSTRING(int dummy, unsigned char *m, unsigned int mlen, unsigned char *sigbuf, unsigned int siglen, RSA *rsa);DESCRIPTION
RSAsignASN1OCTETSTRING() signs the octet string mm of size mmlleennusing the private key rrssaa represented in DER using PKCS #1 padding. It
stores the signature in ssiiggrreett and the signature size in ssiigglleenn. ssiiggrreett must point to RRSSAAssiizzee((rrssaa)) bytes of memory. dduummmmyy is ignored. The random number generator must be seeded prior to calling RSAsignASN1OCTETSTRING(). RSAverifyASN1OCTETSTRING() verifies that the signature ssiiggbbuuff of size ssiigglleenn is the DER representation of a given octet string mm of size mmlleenn. dduummmmyy is ignored. rrssaa is the signer's public key.RETURN VALUES
RSAsignASN1OCTETSTRING() returns 1 on success, 0 otherwise. RSAverifyASN1OCTETSTRING() returns 1 on successful verification, 0 otherwise. The error codes can be obtained by ERRgeterror(3).BUGS
These functions serve no recognizable purpose.SEE ALSO
ERRgeterror(3), objects(3), rand(3), rsa(3), RSAsign(3), RSAverify(3) HISTORY RSAsignASN1OCTETSTRING() and RSAverifyASN1OCTETSTRING() were added in SSLeay 0.8.0.9.7l 2002-09-25 RSAsignASN1OCTETSTRING(3)