public void TtryEncode_SHA256() { byte[] digestValue = new byte[32]; byte[] result = new byte[1024]; bool success = Pkcs1DigestInfo.TryEncode(HashAlgorithmName.SHA256, digestValue, result, out int len); Assert.IsTrue(success); CheckAsn1(result.AsSpan(0, len).ToArray()); }