nn::crypto::RsaContext::Encrypt Member Function

Syntax

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

Parameters

Name Description
out pEncryptLength The length of the encrypted data.
out pDest The address of the buffer storing encrypted data.
in destSize The size of the buffer storing encrypted data (in bytes).
in pSrc The address of the buffer storing data to be encrypted.
in srcLength The length of data to be encrypted. (This parameter may be omitted. If omitted, the length is measured inside the function.)

Return Values

nn::Result

Description

Encrypts using RSA.


CONFIDENTIAL