CryptoImportAsymmetricKey (FUN)

FUNCTION CryptoImportAsymmetricKey : RTS_IEC_RESULT

This function can be used to import asymmtric keys from different formats.

InOut:

Scope

Name

Type

Comment

Return

CryptoImportAsymmetricKey

RTS_IEC_RESULT

Result of the operation

Input

data

RtsByteString

The buffer to be imported.

xBase64

BOOL

Import the key in BASE64 encoding. Otherwise ASN.1 will be used.

xPrivateKey

BOOL

TRUE: Import a private key. FLASE: Import a public key.

pKey

POINTER TO RtsCryptoKey

The imported public key.