CAAM secure storage via user space

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

CAAM secure storage via user space

2,836 Views
noammoshe
Contributor II

Hi,
I want to use the CAAM secure storage to save data (passwords, keys, ...). I did some reading and I saw in:

      iMX6 (CAAM, TrustZone) Hardware Security Blocks Use. 
      Non Volatile Memory in CAAM (iMX6) 
      CAAM operation failure with secure memory 

that the secure storage access is only via kernel space. How do I get to the secure storage from user space and preform something simple as saving data?

Thanks in advance. 

Labels (2)
Tags (2)
4 Replies

1,239 Views
Yuri
NXP Employee
NXP Employee

Hello,

  You may try using the CAAM secure storage in user space with the same descriptors as kernel does.

Have a great day,
Yuri

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

1,239 Views
noammoshe
Contributor II

Can you supply an example? the only examples (or theory) I found was using the CAAM in user space via AF_ALG or cryptodev (ioctl) but in both there isn't an option to access the secure storage.  

0 Kudos

1,239 Views
Yuri
NXP Employee
NXP Employee

Hello,

  

  sorry - no examples.

Regards,

Yuri.

0 Kudos

1,239 Views
noammoshe
Contributor II

Can you at least point out to the API?

0 Kudos