byte[] GenerateEntropy(int entropySize)
 {
     byte[] result = DiagnosticUtility.Utility.AllocateByteArray(entropySize / 8);
     CryptoHelper.FillRandomBytes(result);
     return(result);
 }
 internal static HashAlgorithm NewSha256HashAlgorithm()
 {
     return(CryptoHelper.CreateHashAlgorithm(SecurityAlgorithms.Sha256Digest));
 }