CryptoExportAsymmetricKey (FUN)

FUNCTION CryptoExportAsymmetricKey : RTS_IEC_RESULT

This function can be used to export asymmetric keys

InOut:

Scope

Name

Type

Comment

Return

CryptoExportAsymmetricKey

RTS_IEC_RESULT

Result of the operation. ERR_NOT_SUPPORTED if the key does not support exporting.

Input

key

RtsCryptoKey

The key to be exported.

xBase64

BOOL

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

xPrivateKey

BOOL

FALSE: Export the public key. TRUE: Export the private key.

pData

POINTER TO RtsByteString

Pointer to the buffer where to store the key.