From: GitHub <no...@gi...> - 2014-12-02 10:19:36
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: cd01a73cafd89ef7672c9d5602428dccb549f32d https://github.com/OpenSC/OpenSC/commit/cd01a73cafd89ef7672c9d5602428dccb549f32d Author: Doug Engert <dee...@gm...> Date: 2014-12-02 (Tue, 02 Dec 2014) Changed paths: M src/pkcs11/pkcs11-object.c Log Message: ----------- 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. |