CryptoSymmetricDecrypt (FUN)

FUNCTION CryptoSymmetricDecrypt : RTS_IEC_RESULT

Perform a symmetric decryption using the algorithm handle.

InOut:

Scope

Name

Type

Comment

Return

CryptoSymmetricDecrypt

RTS_IEC_RESULT

Result of the operation

Input

hAlgo

RTS_IEC_HANDLE

Handle to the algorithm.

pCipherText

POINTER TO RtsByteString

Data to be decrypted

key

RtsCryptoKey

Key to decrypt the data. Has to be a KeyType_Key key.

pInitVector

POINTER TO RtsByteString

Init vector of the decrypt.

xEnablePadding

BOOL

Enables padding. If this is not enabled the ciphertext length has to match a multiple of the block length.

pPlainText

POINTER TO RtsByteString

Decrypted data.