<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Crypto.Parameters.ParametersWithIV

Wrapper class for parameters which include an Initialisation Vector (IV).
public int IVLength { get; }

Return the length of the IV in bytes.

public ICipherParameters Parameters { get; }

Return the base parameters (e.g., KeyParameter) associated with this IV.

public ParametersWithIV(ICipherParameters parameters, byte[] iv)

Basic constructor.

public ParametersWithIV(ICipherParameters parameters, byte[] iv, int ivOff, int ivLen)

Constructor with offset and length for IV.

public void CopyIVTo(byte[] buf, int off, int len)

Copy the IV into a segment of a destination buffer.

public byte[] GetIV()

Return a copy of the IV.