use CAAM for none contiguous data

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

use CAAM for none contiguous data

1,386 Views
k_aboufath-scal
Contributor I

Hello,

I am trying to use CAAM on iMX6.

Using the provided SDK, I use QNX OS, and I managed to implement the component and use MD5 and SHA-x successfully, but only for data in a contiguous zone.

how to use the CAAM or descriptor commands to compute a hash (MD5, SHA-xxx) of a none contiguous data area?

Or, is there a descriptor command to compute a hash (MD5, SHA-xxx) on more than one data field in a single descriptor command?

The descriptor is as follows:

0xB0800007

0x8440000C

0x24540000

@Pointer to physical adress for data

data size

0x54200010

0x7C1C3EAC

Thanks

Khalid

Labels (1)
0 Kudos
4 Replies

623 Views
Yuri
NXP Employee
NXP Employee

Hello,

 

    CAAM uses own DMA, therefore continuous memory should be provided 

by system for CAAM.

Have a great day,

Yuri

 

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored

 

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

0 Kudos

623 Views
k_aboufath-scal
Contributor I

Thank you,

I am developing a CAAM driver for the Hash part, I can’t guarantee and be sure that the data or the file will be stored continuously by the user of this CAAM driver.

 

If I calculate the MD5 for each continuous zone of the file, is there a way (or protocol) to take these MD5 to deduce the final MD5 from the whole file?

Regards

Khalid

0 Kudos

623 Views
ma_sreelakshmi
Contributor II

Hello Khalid,

Could you succeed to do hashing of files using CAAM? May i know how to implement it in job descriptors?

Thanks in advance..

Best regards

Sreelakshmy

0 Kudos

623 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Generally the CAAM supports scatter/gather for data, but customers should implement it themselves.

Use the i.MX6 Security Reference Manual for more details.

  As for combining of MD5s - hardly it is possible.

Regards,

Yuri.

0 Kudos