CAAM secure storage via user space

cancel
Showing results for 
Search instead for 
Did you mean: 

CAAM secure storage via user space

1,774 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

177 Views
Yuri
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

177 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

177 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

  

  sorry - no examples.

Regards,

Yuri.

0 Kudos

177 Views
noammoshe
Contributor II

Can you at least point out to the API?

0 Kudos