RFR: 8282077: PKCS11 provider C_sign() impl should handle CKR_BUFFER_TOO_SMALL error

Valerie Peng valeriep at openjdk.java.net
Fri Feb 18 22:00:13 UTC 2022


Could someone please help review this trivial change? This is to add an error handling for the potential CKR_BUFFER_TOO_SMALL error when calling C_Sign(). Since none of the supported signature algorithms trigger this error as the default buffer size is large enough, this is more for consistency sake. No new regression test for this and thus the @noreg-hard label.

Thanks,
Valerie

-------------

Commit messages:
 - 8282077: PKCS11 provider C_sign() impl should handle CKR_BUFFER_TOO_SMALL error

Changes: https://git.openjdk.java.net/jdk/pull/7540/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7540&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8282077
  Stats: 11 lines in 1 file changed: 10 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7540.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7540/head:pull/7540

PR: https://git.openjdk.java.net/jdk/pull/7540



More information about the security-dev mailing list