i.MX Security Middleware Library (smw) problems with pkcs11 API

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

i.MX Security Middleware Library (smw) problems with pkcs11 API

1,659 次查看
matteo-facchinetti
Contributor II

Hi,

I'd like to start to use the libsmw_pkcs11.so from the SMW (Security Middleware Library) but I have find problems when try to init the token on  slot 0.
In detail:

$ export PIN=1234567890
$ export SO_PIN=999999999999999999
$ alias p11t='pkcs11-tool --module /usr/lib/libsmw_pkcs11.so
$ p11t -L
Available slots:
Slot 0 (0x0): Security Middleware Abstraction
token state: uninitialized

...way here all seem good but when I try to init:

$ p11t --init-token --init-pin --so-pin=$SO_PIN --new-pin=$PIN --label="fusion_hsm" --pin=$PIN
Using slot 0 with a present token (0x0)
error: PKCS11 function C_InitToken failed: rv = CKR_DEVICE_ERROR (0x30)
Aborting.

Any help is welcome.
Thanks in advance.

0 项奖励
回复
2 回复数

1,601 次查看
matteo-facchinetti
Contributor II

I'm sorry, but I don't find any relation between my problem and this DEMO code.
Please, could you tell me what you mean?

0 项奖励
回复

1,639 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

 I don't know if you have the DEMO project code, here I will post a link, if you don't have one, you can refer to it.

AN5401SW-

https://community.nxp.com/t5/S32K/Who-can-share-S32K-secure-boot-sample-AN5401SW-zip/td-p/797807 

How to use-

https://community.nxp.com/t5/S32-Design-Studio/How-to-compile-AN5401SW-zip-in-S32-Design-studio-for-... 

Hope these reference routines can help you.

 

Regards

0 项奖励
回复