16 internal sealed class ClearTextChannel : MessageSecureChannel
18 private const string NotSecuredMessage =
19 "Line quality test traffic is never secured; this channel has no cryptographic state.";
25 public static readonly ClearTextChannel Instance =
new();
27 private ClearTextChannel()
31 public override byte[] DecodePayload(
byte[] payload) =>
throw new NotSupportedException(NotSecuredMessage);
33 public override void EncodePayload(
byte[] payload, Span<byte> destination) =>
34 throw new NotSupportedException(NotSecuredMessage);
36 public override ReadOnlySpan<byte> GenerateMac(ReadOnlySpan<byte> message,
bool isIncoming) =>
37 throw new NotSupportedException(NotSecuredMessage);