Does sm_test.c tests the CAAM on secured memory ? How to verify ?

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

Does sm_test.c tests the CAAM on secured memory ? How to verify ?

1,862 次查看
swapnilpendhare
Contributor III

Hi,

How can I verify whether sm_test module runs on secured memory . As per my understanding in open configuration sm_test does use secured memory block but the key used will be CAAM default master key. is this understanding correct ? 

I observed his default Master key is same for all the chips ? isthis correct ?

with this understanding I tried to run this test in both open and closed  configuration but in both the cases results are same. 

Am i missing something over here.?

Thanks for your help in advance.

标签 (6)
0 项奖励
回复
3 回复数

1,441 次查看
Yuri
NXP Employee
NXP Employee

Hello,

Freescale BSP provides “sm_test.c” example (located at "drivers/crypto/caam/sm_test.c")

just for CAAM testing, where CAAM default (the same for all i.MX6 parts) master key is used.


Have a great day,
Yuri

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

0 项奖励
回复

1,441 次查看
swapnilpendhare
Contributor III

Thanks Yuri,

I am trying to restructure sm_test driver for a POC where i can encapsulate block key & encrypted data from sm_test driver and store it in user space in hard disk.

and later ( maybe after reboot) I will pass this key and Encrypted data to same driver to decrypt and print original data.

This this is being done is open config hence on multiple boards (wandboards) I can see same encrypted key and encrypted data.

Now the query is, Will it be different in case I used closed config and can be decrypted by same board only.

Thanks a lot for your support.

0 项奖励
回复

1,441 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  In open (security) configuration default (common for all i.MX6 parts) key is used.

In closed configuration, unique for each i.MX6 key (key encryption key) is applied,
and the encrypted data may be decrypted only for i.MX6, which was used for encryption. 

Regards,

Yuri.

0 项奖励
回复