You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model model of the device. MUST be padded with the blank character (‘ ‘). MUST NOT be null-terminated.
This is a bug in tmp2-pkcs11, please report it to them.
All of the strings returned in CK_INFO, CK_SLOT_INFO, CK_TOKEN_INFO structure MUST NOT be NULL terminated and must be blank (space) padded to their length.
They use the correct padding helpers but the code is wrong because it always passes 16 byte as the source len, regardless of what's in the vendor structure.
What they need to do is to copy the vendor info, then parse the string, find the NULL bytes and convert them to spaces.
The text was updated successfully, but these errors were encountered:
I initially reported this here: latchset/pkcs11-provider#296
One of the maintainers has generously traced the issue to here:
The text was updated successfully, but these errors were encountered: