Exemple #1
0
        public RecordLayer(byte[] protocolVersion)
        {
            m_protocolVersion = protocolVersion;

            SecurityParameters = new SecurityParameters();
            SecurityParameters.BulkCipherAlgorithm = BulkCipherAlgorithm.Null;
            SecurityParameters.MACAlgorithm = MACAlgorithm.Null;

            PRF = new SHA256PRF();
        }
Exemple #2
0
        public RecordLayer(byte[] protocolVersion)
        {
            m_protocolVersion = protocolVersion;

            SecurityParameters = new SecurityParameters();
            SecurityParameters.BulkCipherAlgorithm = BulkCipherAlgorithm.Null;
            SecurityParameters.MACAlgorithm        = MACAlgorithm.Null;

            PRF = new SHA256PRF();
        }
Exemple #3
0
        /// <summary>
        /// 配置
        /// </summary>
        /// <summary>
        /// Create a new RecordLayer object with the given protocol-version.
        /// </summary>
        /// <param name="protocolVersion">a 2-element byte-array that denotes the version of this protocol</param>
        public RecordLayer()
        {
            SecurityParameters = new SecurityParameters
            {
                BulkCipherAlgorithm = BulkCipherAlgorithm.Null,
                MACAlgorithm        = MACAlgorithm.Null
            };

            PRF = new SHA256PRF();
        }