Org.BouncyCastle.Tls.Crypto.Impl.Tls13NullCipher
A generic TLS 1.3 "integrity-only" cipher.
namespace Org.BouncyCastle.Tls.Crypto.Impl
{
public sealed class Tls13NullCipher : TlsCipher, TlsCipherExt
{
public bool UsesOpaqueRecordType { get; }
public Tls13NullCipher(TlsCryptoParameters cryptoParams, TlsHmac readHmac, TlsHmac writeHmac);
public int GetCiphertextDecodeLimit(int plaintextLimit);
public int GetCiphertextEncodeLimit(int plaintextLength, int plaintextLimit);
public int GetPlaintextLimit(int ciphertextLimit);
public int GetPlaintextDecodeLimit(int ciphertextLimit);
public int GetPlaintextEncodeLimit(int ciphertextLimit);
public TlsEncodeResult EncodePlaintext(long seqNo, short contentType, ProtocolVersion recordVersion, int headerAllocation, byte[] plaintext, int plaintextOffset, int plaintextLength);
public TlsDecodeResult DecodeCiphertext(long seqNo, short recordType, ProtocolVersion recordVersion, byte[] ciphertext, int ciphertextOffset, int ciphertextLength);
public void RekeyDecoder();
public void RekeyEncoder();
}
}