CRYPTO_RSA_Sign

Syntax


#include <nitro/crypto.h>

s32 CRYPTO_RSA_Sign(CRYPTORSASignContext *context, CRYPTORSASignParam *param);
		

Arguments

context Specifies the address of the CRYPTORSASignContext structure that was initialized by the CRYPTO_RSA_SignInit function.
param Specifies the address of the structure for specifying strings and other data for creating signatures.

Return Values

Returns one of the following process results.

Positive number Number of strings that were written to the output buffer (indicates that signature creation succeeded)
-1 Indicates that signature creation failed

Description

Creates a digital signature.
The CRYPTO_RSA_SignInit function must be run before running digital signature creation-related code with this function. In addition, the CRYPTO_RSA_SignTerminate function must be run when cryptography operations have completed.

The information required for digital signature creation, such as the string to be digitally signed and the output destination, must be specified in the members of the param argument. For details, refer to CRYPTORSASignParam.

For detailed information on creating digital signatures, see Digital Signature Overview.

See Also

CRYPTO_RSA_SignInit, CRYPTO_RSA_SignTerminate

Revision History

2008/04/17 Initial version.


CONFIDENTIAL