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

TlsAeadCipherImpl

public interface TlsAeadCipherImpl
Base interface for services supporting AEAD encryption/decryption.
int DoFinal(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset)

Perform the cipher encryption/decryption returning the output in output.

int DoFinal(byte[] additionalData, byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset)

Perform the cipher encryption/decryption returning the output in output.

int GetOutputSize(int inputLength)

Return the maximum size of the output for input of inputLength bytes.

void Init(byte[] nonce, int macSize, byte[] additionalData)

Initialise the parameters for the AEAD operator.

void Reset()

void SetKey(byte[] key, int keyOff, int keyLen)

Set the key to be used by the AEAD cipher implementation supporting this service.