nn::crypto::RsaContext::Sign Member Function

Syntax

nn::Result Sign(
     size_t * pSignLength,
     void * pDest,
     size_t destSize,
     const void * pSrc,
     size_t srcLength = SIZE_STRING_LENGTH
);

Parameters

Name Description
out pSignLength Length of signature data created.
out pDest The address of the buffer storing signature data.
in destSize The size of the buffer storing signature data (in bytes).
in pSrc The address of the buffer storing data to use for the signature.
in srcLength The length of data to be used as the signature. (This parameter may be omitted. If omitted, the length is measured inside the function.)

Return Values

nn::Result

Description

Creates an RSA-PKCS1-v1.5-SHA256 signature from a character string.


CONFIDENTIAL