How can I generate black key blob from user space in Linux 5.10 with CAAM

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

How can I generate black key blob from user space in Linux 5.10 with CAAM

2,868 次查看
wolframwadepohl
Contributor II

Tried from github.com/f-secure-foundry/caam-keyblob but does not work in 5.10

There is a reference in i.MX Linux® User's Guide, Rev. LF5.10.52_2.1.0, 15 October 2021 to caamkeyblob.[c,h] but I could not find the sources.

标记 (4)
0 项奖励
回复
5 回复数

2,771 次查看
Yuri
NXP Employee
NXP Employee

@wolframwadepohl 
Hello,

   So, give all specific error codes and/ or exceptions thrown from the terminal in order to allow
us to properly debug the issue. Given that this operation is a multi-step procedure, we need to
pinpoint exactly at what step does the fault occur. 

Regards,
Yuri.

0 项奖励
回复

2,806 次查看
wolframwadepohl
Contributor II

Hi, I'm not as close on the software, but we had some problems with the driver, there was a change of return values and therfore the application failed.

Fabio Estevam <festevam@denx.de> debugged the issue for us. Here is the result:

Since commit 4d370a103695 ("crypto: caam - change return code
in caam_jr_enqueue function") the caam_jr_enqueue() does not return 0
on success anymore.

The new return value when caam_jr_enqueue() succeeds is
-EINPROGRESS.

Maybe this helps.

2,857 次查看
Yuri
NXP Employee
NXP Employee

@wolframwadepohl 
Hello,

   I've sent You some comments directly.

Regards,
Yuri.

0 项奖励
回复

2,831 次查看
joepvk
Contributor II

Hi Iḿ currently also experiencing the same problem:
/build_xwayland/tmp/work-shared/imx8qxpb0-var-som/kernel-source/drivers/crypto/caam/key_blob.c:16:10: fatal error: caamkeyblob.h: No such file or directory
| 16 | #include "caamkeyblob.h"

Currently trying to build the kernel for 5.14.2
Command: bitbake linux-variscite -f -c compile
guide I am following: https://source.codeaurora.org/external/imxsupport/imx_sec_apps/tree/demo-caam-blobs/README.txt

Could I also receive direct comments or information?
@Yuri 

0 项奖励
回复

2,761 次查看
BiyongSUN
NXP Employee
NXP Employee

 

If you use the  LF_v5.10.52-2.1.0, caam-keygen is default in build.

 

crypto af_alg blackkey demo

crypto af_alg blackkey demo - NXP Community