pkcs11 C_Digest() is too restrictive in input

Review Request #1146 — Created Aug. 3, 2018 and submitted

jbk
illumos-gate
9698
general

Issue found via the digest test framework from illumos#9697 -- Our PKCS#11 implementation returns an error when attempting to create a digest of a zero byte input. There is nothing in the PKCS#11 implemetation that requires this behavior.

Ran the digest tests with the fix applied and the run 1 failures previously seen (which are the 0-byte inputs) now complete successfully.

yuripv
  1. Ship It!
  2. 
      
igork
  1. Ship It!
  2. 
      
mbarden
  1. Ship It!
  2. 
      
jbk
Review request changed

Status: Closed (submitted)

Loading...