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

TlsBlockCipherImpl

public interface TlsBlockCipherImpl
Interface for block cipher services.
int DoFinal(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset)

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

Return the blocksize (in bytes) of the underlying block cipher.

void Init(byte[] iv, int ivOff, int ivLen)

Initialise the parameters for operator.

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

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