CAUAP: initial vector for AES 256 CBC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAUAP: initial vector for AES 256 CBC

676 Views
mastupristi
Senior Contributor I

I cannot find how to set the initial vector for AES 256 CBC in CAUAP mmCAU Software Library. How can be done?

Labels (1)
0 Kudos
2 Replies

523 Views
mjbcswitzerland
Specialist V

Hi

static int mmcau_encrypt_aes_cbc(const uint8_t *key,
                                 uint32_t mode,
                                 const uint8_t *inputData,
                                 uint8_t *outputData,
                                 uint16_t dataLength,
                                 const uint8_t *initVector)

If this is what you are using you pass the initial vector to the function with whatever value you want.

See some references and comparisons at http://www.utasker.com/docs/uTasker/uTasker_Cryptography.pdf

Regards

Mark


uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)
Kinetis: http://www.utasker.com/kinetis.html

0 Kudos

523 Views
mastupristi
Senior Contributor I

Indeed, in other posts I have read that CAUAP only supports ECB (this should be highlighted in the documentation).
However, I can derive a CBC scheme from an ECB as shown here:

Electronic Codebook (ECB)

Cipher Block Chaining (CBC)

0 Kudos