Initialization vector in AES-CBC does not work.

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

Initialization vector in AES-CBC does not work.

448 Views
ericg
Contributor II

How to load initialization vector properly in CAAM when using AES-CBC? The following code always produce same cipher text with random IV.

append_load(desc, iv_dma, 16, LDST_SRCDST_BYTE_CONTEXT | LDST_CLASS_1_CCB); // 0x12200010

Below is my full command sequence. Am I missing something here? Thanks.

EncryptDecrypt

0 -> 0xb080000b

1 -> 0x12200010

2 -> 0x7f0a6808

3 -> 0x02400020

4 -> 0x8941fdb0

5 -> 0x8210010d

6 -> 0x22120100

7 -> 0x892ef000

8 -> 0x60700000

9 -> 0x892ef100

10 -> 0x00000100

     0 -> 0xb080000b

     1 -> 0x12200010

     2 -> 0x7f0a6818

     3 -> 0x02400020

     4 -> 0x8941fdd0

     5 -> 0x8210010c

     6 -> 0x22120100

     7 -> 0x892ef100

     8 -> 0x60700000

     9 -> 0x892ef200

     10 -> 0x00000100

Labels (2)
0 Kudos
1 Reply

373 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Sorry, but the information you are requesting is treated as confidential info at this time and requires a signed NDA (Non-Disclosure Agreement). Naturally, we cannot discuss this with you in public anyway, this requires to be handled
as a Service Request (SR).

How to submit a new question for NXP Support

Have a great day,
Yuri

-------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-------------------------------------------------------------------------------

0 Kudos