CodeMDecrypt (FUN)

FUNCTION CodeMDecrypt : RTS_IEC_RESULT

Decrypt data

InOut:

Scope

Name

Type

Comment

Return

CodeMDecrypt

RTS_IEC_RESULT

Error code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded

Input

hCodeMeter

RTS_IEC_HANDLE

Handle to the CodeMeter license container retrieved by CodeMOpen().

udiEncryptionCode

UDINT

Encryption code

ulCRC

UDINT

CRC of the encrypted data

pbyData

POINTER TO BYTE

Pointer to data to decrypt

nDataLen

__XWORD

Length of data to decrypt