pkcs11 C_Digest() is too restrictive in input
Upstream of Joyent OS-6605:
While adding a bunch of additional test vectors to the crypto-tests in illumos-joyent, it was discovered that the 0-length SHA1 and SHA2 (SHA256,SHA384,SHA512) tests fail. This is because pkcs11_softtoken doesn't allow a NULL or 0-length input for C_Digest (however, C_DigestUpdate/C_DigestFinal do work. There is nothing I can find in the PKCS#11 specification that suggests the input value MUST be > 0.
Updated by Electric Monk almost 3 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 0e986b9d87352cd82909c748e7f684afe0ed579f Author: Jason King <email@example.com> Date: 2018-08-07T19:46:09.000Z 9698 pkcs11 C_Digest() is too restrictive in input Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Yuri Pankov <firstname.lastname@example.org> Reviewed by: Igor Kozhukhov <email@example.com> Reviewed by: Matt Barden <firstname.lastname@example.org> Approved by: Richard Lowe <email@example.com>