CryptoSys PKI Pro Manual

rsaDecrypt

Decrypt a message encrypted using an RSA encryption scheme.

Syntax

[VBA]
Public Function rsaDecrypt ( _
    lpInput() As Byte, _
    szPrivateKeyFile As String, _
    szPassword As String, _
    nOptions As Long, _
    Optional szParameters As String = "" _
) As Byte()

Parameters

lpInput
Data to be decrypted.
szPrivateKeyFile
Name of the private key file, or a string containing the key in PEM format, or a valid internal private key string.
szPassword
Password for encrypted private key, or "" if password is not required.
nOptions
Select one of the following:
PKI_EME_PKCSV1_5 (0 default)
PKI_EME_OAEP
szParameters
For future use.

Return Value

Byte(): Decrypted data or an empty array on error.

Remarks

Note different order of parameters from core function.
[PREV: rsaDecodeMsg...]   [Contents]   [Index]   
   [NEXT: rsaEncodeMsg...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.