OpenSC/OpenSC — pull request #330 by dengert (2014-11-20 01:52:02+00:00)
Title: C_Digest does not check if buffer too small before update. Issue #327

C_Digest will now query for the buffer size using sc_pkcs15_md_final
before calling sc_pkcs15_md_update. This avoids doing a double update
when the user passes in a buffer to small, then gets the buffer and calls
C_Digest again.