<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Tls.Crypto.Impl.Tls13NullCipher

public sealed class Tls13NullCipher : TlsCipher, TlsCipherExt
A generic TLS 1.3 "integrity-only" cipher.
public bool UsesOpaqueRecordType { get; }

public Tls13NullCipher(TlsCryptoParameters cryptoParams, TlsHmac readHmac, TlsHmac writeHmac)

public TlsDecodeResult DecodeCiphertext(long seqNo, short recordType, ProtocolVersion recordVersion, byte[] ciphertext, int ciphertextOffset, int ciphertextLength)

public TlsEncodeResult EncodePlaintext(long seqNo, short contentType, ProtocolVersion recordVersion, int headerAllocation, byte[] plaintext, int plaintextOffset, int plaintextLength)

public TlsEncodeResult EncodePlaintext(long seqNo, short contentType, ProtocolVersion recordVersion, int headerAllocation, ReadOnlySpan<byte> plaintext)

public int GetCiphertextDecodeLimit(int plaintextLimit)

public int GetCiphertextEncodeLimit(int plaintextLength, int plaintextLimit)

public int GetPlaintextDecodeLimit(int ciphertextLimit)

public int GetPlaintextEncodeLimit(int ciphertextLimit)

public int GetPlaintextLimit(int ciphertextLimit)

public void RekeyDecoder()

public void RekeyEncoder()