InitalizeCipherSuite() public method

public InitalizeCipherSuite ( ) : void
return void
Beispiel #1
0
        private void OnCipherSuiteChangeFromHandshakeLayer(object sender, EventArgs e)
        {
            NetMQMessage changeCipherMessage = new NetMQMessage();

            changeCipherMessage.Append(new byte[] { 1 });

            m_outgoingMessageBag.AddCipherChangeMessage(changeCipherMessage);

            m_recordLayer.SecurityParameters = m_handshakeLayer.SecurityParameters;

            m_recordLayer.InitalizeCipherSuite();
        }
Beispiel #2
0
        private void OnCipherSuiteChangeFromHandshakeLayer(object sender, EventArgs e)
        {
            // The change cipher spec protocol exists to signal transitions in ciphering strategies.
            // The protocol consists of a single message, which is encrypted and compressed under the current(not the pending) connection state.
            // The message consists of a single byte of value 1.
            // enum { change_cipher_spec(1), (255) } type;
            m_outgoingMessageBag.AddCipherChangeMessage(new byte[] { 1 });

            RecordLayer.SecurityParameters = m_handshakeLayer.SecurityParameters;

            RecordLayer.InitalizeCipherSuite();
            RecordLayer.SetSubProtocolVersion(m_handshakeLayer.SubProtocolVersion);
        }