CryptoSymmetricDecrypt (FUN)
FUNCTION CryptoSymmetricDecrypt : RTS_IEC_RESULT
Perform a symmetric decryption using the algorithm handle.
- InOut:
Scope
Name
Type
Comment
Return
CryptoSymmetricDecryptRTS_IEC_RESULTResult of the operation
Input
hAlgoRTS_IEC_HANDLEHandle to the algorithm.
pCipherTextPOINTER TO RtsByteString
Data to be decrypted
keyRtsCryptoKeyKey to decrypt the data. Has to be a KeyType_Key key.
pInitVectorPOINTER TO RtsByteString
Init vector of the decrypt.
xEnablePaddingBOOLEnables padding. If this is not enabled the ciphertext length has to match a multiple of the block length.
pPlainTextPOINTER TO RtsByteString
Decrypted data.