C_Digest  does not handle size query correctly Issue #327

Code added to allow C_Digest to handle buffer size querry and CKR_BUFFER_TOO_SMALL
before doing the md_update function.