SupportsHashAlgorithmType() публичный Метод

public SupportsHashAlgorithmType ( byte hashAlgorithm ) : bool
hashAlgorithm byte
Результат bool
Пример #1
0
 public void Constructor()
 {
     SignatureAlgorithmDSA dsa = new SignatureAlgorithmDSA();
     Assert.AreEqual ("1.2.840.10040.4.1", dsa.CertificateKeyAlgorithm);
     Assert.AreEqual (2, dsa.SignatureAlgorithmType);
     Assert.IsTrue (dsa.SupportsProtocolVersion(ProtocolVersion.TLS1_0));
     Assert.IsFalse (dsa.SupportsHashAlgorithmType(1));
     Assert.IsTrue (dsa.SupportsHashAlgorithmType(2));
 }
Пример #2
0
        public void Constructor()
        {
            SignatureAlgorithmDSA dsa = new SignatureAlgorithmDSA();

            Assert.AreEqual("1.2.840.10040.4.1", dsa.CertificateKeyAlgorithm);
            Assert.AreEqual(2, dsa.SignatureAlgorithmType);
            Assert.IsTrue(dsa.SupportsProtocolVersion(ProtocolVersion.TLS1_0));
            Assert.IsFalse(dsa.SupportsHashAlgorithmType(1));
            Assert.IsTrue(dsa.SupportsHashAlgorithmType(2));
        }