nn::crypto::RsaContext::Decrypt Member Function

Syntax

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

Parameters

Name Description
out pDecrptLength The length of decrypted data.
out pDest The address of the buffer storing decrypted data.
in destSize The size of the buffer storing decrypted data.
in pSrc The address of the buffer storing data to be decrypted.
in srcLength The length of the data to be decrypted. (This parameter may be omitted and, if it is, the length is measured within the function.)

Return Values

nn::Result

Description

Decrypts using RSA.

This writes the decrypted data followed by some junk data (not to exceed the buffer size). All data beyond pDecryptLength bytes is unnecessary and should be deleted by the application.


CONFIDENTIAL