-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown error code from Ctx::new()
on ARMv7 when calling the PKCS#11 C_GetFunctionList()
function.
#51
Comments
Ctx::new()
on ARMv7 during PKCS#11 C_GetFunctionList()
call.Ctx::new()
on ARMv7 during PKCS#11 C_GetFunctionList()
call.
Ctx::new()
on ARMv7 during PKCS#11 C_GetFunctionList()
call.Ctx::new()
on ARMv7 when calling the PKCS#11 C_GetFunctionList()
function.
@ximon18 yes, because the cryptoki crate is dealing with the different architectures in the right way now. Please use the cryptoki crate https://github.com/parallaxsecond/rust-cryptoki. I'm trying to catch up to properly deprecate this crate. |
Thanks @mheese for all the great work you put in to the |
@ximon18 yes, I would like to make the |
See:
This issue was observed with a YubiHSM2 Nano connected to a Raspberry Pi 4b which is an ARMv7 (arm7l) architecture platform. The issue occurred both when building the code locally on the Pi and when cross compiling from an x86_64 host.
The error message produced by the
pkcs11
crate was:The issue occurs in the
pkcs11
v0.5.0 Rust crate code whenfunc()
is invoked withinCtx::new()
in the code shown below (link to actual pkcs11 crate code):The same code works fine on x86_64 targets.
pkcs11-tool
had no issues on ARM?7 using the same PKCS#11 library.The
cryptoki
create doesn't appear to have the same problem as switching to that crate resolved the issue for the simple https://github.com/ximon18/keyls tool.The text was updated successfully, but these errors were encountered: