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.
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?
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-
Hope these reference routines can help you.
Regards