C_Digest does not check if buffer too small before update. Issue #327
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.

gemini/OpenSC,carlhoerberg/OpenSC,aobaid/OpenSC,dirkx/OpenSC,frankmorgner/OpenSC,martinpaljak/OpenSC,UIKit0/OpenSC,ieugen/OpenSC,philipWendland/OpenSC,dirkx/OpenSC,rickyepoderi/OpenSC,ieugen/OpenSC,Jakuje/OpenSC,OpenSC/OpenSC,dirkx/OpenSC.tokend,CardContact/OpenSC,adminmt/OpenSC,financeX/OpenSC,ieugen/OpenSC,kasparsd/opensc-latvia-id,marschap/pkg-opensc,germanblanco/OpenSC,philipWendland/OpenSC,mtrojnar/OpenSC,mouse07410/OpenSC,viktorTarasov/OpenSC-SM,fabled/OpenSC,Jakuje/OpenSC,dirkx/OpenSC,germanblanco/OpenSC,dirkx/OpenSC,marschap/pkg-opensc,viktorTarasov/OpenSC-SM,financeX/OpenSC,nmav/OpenSC,dirkx/OpenSC.tokend,l1k/OpenSC,mtrojnar/OpenSC,jpki/OpenSC,aobaid/OpenSC,jpki/OpenSC,tidatida/OpenSC,frankmorgner/OpenSC,fabled/OpenSC,LudovicRousseau/OpenSC,financeX/OpenSC,dengert/OpenSC,UIKit0/OpenSC,dengert/OpenSC,UIKit0/OpenSC,martinpaljak/OpenSC,hhonkanen/OpenSC,philipWendland/OpenSC,OpenSC/OpenSC,mouse07410/OpenSC,CardContact/OpenSC,metsma/OpenSC,UIKit0/OpenSC,nmav/OpenSC,CardContact/OpenSC,aobaid/OpenSC,dirkx/OpenSC.tokend,dengert/OpenSC,financeX/OpenSC,adminmt/OpenSC,velter/OpenSC,financeX/OpenSC,rickyepoderi/OpenSC,adminmt/OpenSC,ieugen/OpenSC,dirkx/OpenSC.tokend,hongquan/OpenSC-main,mtrojnar/OpenSC,dirkx/OpenSC.tokend,hhonkanen/OpenSC,gemini/OpenSC,hongquan/OpenSC-main,dirkx/OpenSC,velter/OpenSC,velter/OpenSC,hhonkanen/OpenSC,hongquan/OpenSC-main,LudovicRousseau/OpenSC,l1k/OpenSC,kasparsd/opensc-latvia-id,OpenSC/OpenSC,carlhoerberg/OpenSC,tidatida/OpenSC,rickyepoderi/OpenSC,carlhoerberg/OpenSC,AktivCo/OpenSC,frankmorgner/OpenSC,AktivCo/OpenSC,jpki/OpenSC,marschap/pkg-opensc,Jakuje/OpenSC,mouse07410/OpenSC,fabled/OpenSC,carlhoerberg/OpenSC,tidatida/OpenSC,metsma/OpenSC,carlhoerberg/OpenSC,kasparsd/opensc-latvia-id,adminmt/OpenSC,viktorTarasov/OpenSC-SM,gemini/OpenSC,l1k/OpenSC,dirkx/OpenSC.tokend,fabled/OpenSC,marschap/pkg-opensc,velter/OpenSC,kasparsd/opensc-latvia-id,martinpaljak/OpenSC,LudovicRousseau/OpenSC,aobaid/OpenSC,metsma/OpenSC,tidatida/OpenSC,ieugen/OpenSC,nmav/OpenSC,germanblanco/OpenSC,Jakuje/OpenSC,frankmorgner/OpenSC,AktivCo/OpenSC