CodeMEncrypt (FUN)
FUNCTION CodeMEncrypt : RTS_IEC_RESULT
Encrypt data
- InOut:
Scope
Name
Type
Comment
Return
CodeMEncryptRTS_IEC_RESULTError code (see CmpErrors2 Interfaces Library) or ERR_OK if succeeded
Input
hCodeMeterRTS_IEC_HANDLEHandle to the CodeMeter license container retrieved by CodeMOpen().
udiEncryptionCodeUDINTEncryption code
pbyDataPOINTER TO BYTE
Pointer to plain text data to encrypt
nDataLen__XWORDLength of data to encrypt
Inout
ulCRCUDINTReturns CRC of the encrypted data