Doug Engert
Doug Engert
@sandevins If you have the specs for the device, it might be possible to add a driver to https://github.com/OpenSC/OpenSC but there are PKCS11 issues for example what is the format...
So this simulator has a pkcs11 module? i.e. is that the connector? If so can you run these commands using the OpenSC pkcs11-tool: pkcs11-tool --module path-to-simulator-module -I pkcs11-tool --module path-to-simulator-module...
PKCS11 also comes with header files as listed in their dos for example: https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/csd01/include/pkcs11-v3.1/ And https://github.com/oasis-tcs/pkcs11 appears to have some not yet released versions of the header files. Any vendor...
Where did you find the defines for MECH_ML_VDM, MECH_VDM_SIGN and CKM_MECH_MLDSA_SIGN? Only CKM_MECH_MLDSA_SIGN looks like a PKCS11 mechanism. PKCS11 Mechanisms are usually assigned sequentially. And (MECH_ML_VDM | MECH_VDM_SIGN | 1)...
in pkcs11_spy_createkey.log from above some comments: Looks like the PKCS11 module is treating the size of pMechanism a CK_ULONG PKCS11 3.1 says: /* an unsigned value, at least 32 bits...
> Can you give me some insights to start modifying libp11 to try to make it work with the Vendor Defined Mechanisms for the signing part? @mtrojnar would be the...
Rather than using the libp11 engine, could the libp11 provider be modified instead? Or is the libp11 provider still using the deprecated functions in: https://docs.openssl.org/3.5/man3/EVP_PKEY_meth_new/#methods Could the libp11 provider use...
As pointed out by @ulrichb 30 mins ago; Debian 13 libp11 is based on libp11 0.4.13 https://packages.debian.org/source/trixie/libp11 libp11 is at 0.4.16 https://github.com/OpenSC/libp11 https://github.com/OpenSC/libp11/releases/tag/libp11-0.4.14 introduced using OpenSSl 3 providers reated then...
I would suggest that you submit a bug report to Debian. When you say it is versions are v0.4.12 and v0.4.13 are there any changes applied by debian? For example:...
Rather then removing the `ctx_finish();` use this commit feom last year: https://github.com/OpenSC/libp11/commit/3873b4517257e9aed194e16842335b3ce4735321