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

Org.BouncyCastle.Crypto.Engines.IesEngine

public class IesEngine
Support class for constructing intergrated encryption ciphers for doing basic message exchanges on top of key agreement ciphers.

Set up for use with stream mode, where the key derivation function is used to provide a stream of bytes to xor with the message.

Set up for use in conjunction with a block cipher to handle the message.

public virtual void Init(bool forEncryption, ICipherParameters privParameters, ICipherParameters pubParameters, ICipherParameters iesParameters)

public virtual byte[] ProcessBlock(byte[] input, int inOff, int inLen)