CryptoAsymmetricEncrypt (FUN)

FUNCTION CryptoAsymmetricEncrypt : RTS_IEC_RESULT

Perform a asymmetric encryption using the algorithm handle.

InOut:

Scope

Name

Type

Comment

Return

CryptoAsymmetricEncrypt

RTS_IEC_RESULT

Result of the operation

Input

hAlgo

RTS_IEC_HANDLE

Handle to the algorithm.

pPlainText

POINTER TO RtsByteString

Data to be encrypted

publicKey

RtsCryptoKey

Public key used to encrypt the data.

pCipherText

POINTER TO RtsByteString

Encrypted data.