Encrypt - Wrong IV length: must be 16 bytes long

Hi there,
Lucee 6.1.0.243
Windows Server

I want to connect to a software, which i should have “Hex” encoding and algorithm = “AES/CBC/PKCS5Padding”
I code below lines:

<cfset idata = "08230486BB55B23CC3521F0F01002200200011">
<cfset AESSecretKey = binaryEncode(generateSecretKey("AES", 128), "hex")>
<cfset iv = binaryEncode(generateSecretKey("AES", 128), "hex")>
    <cfset cipherText = encrypt(
        string = idata,
        key = AESSecretKey,
        algorithm = "AES/CBC/PKCS5Padding",
        IVorSalt = iv,
        encoding = "HEX"
    )>

when i run these codes, i receive the below error:
image

Can any one Help me?

Do you have a link to the documentation of that connection?

Hi, no i have not.
Unfortunately i gave up and developed it by PHP.

Thanks for your reply.