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(); }
public void RekeyInitiatorToResponder() { Exceptions.ThrowIfDisposed(disposed, nameof(Transport <CipherType>)); c1.Rekey(); }