Exemple #1
0
        public void RekeyResponderToInitiator()
        {
            Exceptions.ThrowIfDisposed(disposed, nameof(Transport <CipherType>));

            if (IsOneWay)
            {
                throw new InvalidOperationException("Cannot rekey responder to initiator in a one-way stream.");
            }

            c2.Rekey();
        }
Exemple #2
0
        public void RekeyInitiatorToResponder()
        {
            Exceptions.ThrowIfDisposed(disposed, nameof(Transport <CipherType>));

            c1.Rekey();
        }