internal static byte[] CalcDocBytesHash(Stream docBytes) { byte[] docBytesHash = null; try { docBytesHash = DigestAlgorithms.Digest(docBytes, SignTestPortUtil.GetMessageDigest(HASH_ALGORITHM)); } catch (Exception) { } // dummy catch clause return(docBytesHash); }
/// <exception cref="Org.BouncyCastle.Security.GeneralSecurityException"/> public virtual IDigest GetMessageDigest() { return(SignTestPortUtil.GetMessageDigest(DIGEST_ALG)); }