SupportsProtocolVersion() public method

public SupportsProtocolVersion ( ProtocolVersion version ) : bool
version AaltoTLS.PluginInterface.ProtocolVersion
return bool
        public void Constructor()
        {
            byte[] key = new byte[] {
                0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
                0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
                0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23
            };

            Assert.AreEqual(24, cipher.KeySize);
            Assert.AreEqual(8, cipher.BlockSize);
            Assert.AreEqual(80, cipher.Strength);
            Assert.AreEqual(BulkCipherAlgorithmType.Block, cipher.Type);
            Assert.IsTrue(cipher.SupportsProtocolVersion(ProtocolVersion.TLS1_0));
            Assert.IsTrue(cipher.SupportsProtocolVersion(ProtocolVersion.DTLS1_0));
            Assert.IsNotNull(cipher.CreateEncryptor(key, null));
            Assert.IsNotNull(cipher.CreateDecryptor(key, null));
            Assert.IsNotNull(cipher.CreateEncryptor(key, new byte[8]));
            Assert.IsNotNull(cipher.CreateDecryptor(key, new byte[8]));
        }