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

TlsAeadCipherImpl

public interface TlsAeadCipherImpl
Base interface for services supporting AEAD encryption/decryption.
using System; namespace Org.BouncyCastle.Tls.Crypto.Impl { public interface TlsAeadCipherImpl { void SetKey(byte[] key, int keyOff, int keyLen); void SetKey(ReadOnlySpan<byte> key); void Init(byte[] nonce, int macSize, byte[] additionalData); int GetOutputSize(int inputLength); int DoFinal(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset); int DoFinal(byte[] additionalData, byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset); void Reset(); } }