Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable CoolKey driver to handle 2048-bit keys.
For a problem description, see <#1524>. In a nutshell, for a card with the CoolKey applet and 2048-bit keys, the command pkcs11-tool --test --login fails to complete all of its tests. This commit consists of a patch from @dengert. To avoid triggering an error when the data exceeds 255 bytes, this commit limits the amount of the payload sent to the CoolKey applet on the card based on the maximum amount of data that the card can receive, and overhead bytes (namely, a header and nonce) that accompany the payload. With this change, the command pkcs11-tool --test --login succeeds.
- Loading branch information