CryptoSymmetricEncrypt (FUN)
FUNCTION CryptoSymmetricEncrypt : RTS_IEC_RESULT
Perform a symmetric encryption using the algorithm handle.
- InOut:
Scope
Name
Type
Comment
Return
CryptoSymmetricEncryptRTS_IEC_RESULTResult of the operation
Input
hAlgoRTS_IEC_HANDLEHandle to the algorithm.
pPlainTextPOINTER TO RtsByteString
Data to be encrypted
keyRtsCryptoKeyKey to encrypt the data. Has to be a KeyType_Key key.
pInitVectorPOINTER TO RtsByteString
Init vector of the ecryption
xEnablePaddingBOOLEnables padding. If this is not enabled the plaintext length has to match a multiple of the block length.
pCipherTextPOINTER TO RtsByteString
Encrypted data.