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

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

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

1,293 Views
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.

Tags (4)
0 Kudos
5 Replies

1,196 Views
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 Kudos

1,231 Views
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.

1,282 Views
Yuri
NXP Employee
NXP Employee

@wolframwadepohl 
Hello,

   I've sent You some comments directly.

Regards,
Yuri.

0 Kudos

1,256 Views
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 Kudos

1,186 Views
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