CryptoSymmetricEncrypt
(FUN)
FUNCTION CryptoSymmetricEncrypt : RTS_IEC_RESULT
Perform a symmetric encryption using the algorithm handle.
- InOut:
Scope
Name
Type
Comment
Return
CryptoSymmetricEncrypt
RTS_IEC_RESULT
Result of the operation
Input
hAlgo
RTS_IEC_HANDLE
Handle to the algorithm.
pPlainText
POINTER TO RtsByteString
Data to be encrypted
key
RtsCryptoKey
Key to encrypt the data. Has to be a KeyType_Key key.
pInitVector
POINTER TO RtsByteString
Init vector of the ecryption
xEnablePadding
BOOL
Enables padding. If this is not enabled the plaintext length has to match a multiple of the block length.
pCipherText
POINTER TO RtsByteString
Encrypted data.