CAUAP: initial vector for AES 256 CBC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CAUAP: initial vector for AES 256 CBC

834 次查看
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?

标签 (1)
标记 (4)
0 项奖励
回复
2 回复数

681 次查看
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 项奖励
回复

681 次查看
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 项奖励
回复