2025-04-17 8:41 AM
Hi everyone,
I am trying to use the X-Cube-Cryptolib library to decrypt an array encrypted by an external application.
The original data has been encrypted with the AES-GCM 128 using a key of 16 bytes and an IV of 1 byte.
Now, I am getting an error where trying to set the IV to a length other than 12 byte.
Can you confirm that the method "cmox_cipher_setIV" only accept an IV of 12 byte? It is strange that the method documentation does not contain such info..
I tried with an other library that perform a GHASH padding of the IV and it can decrypt my input data.
Is there any similar implementation of a standard compliant method to perform an IV padding to be used with the ST library?
Thanks,
regards
Arianna