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

Org.BouncyCastle.Crypto.Parameters.ParametersWithID

Wrapper class for parameters which include an Identity (ID).
public int IDLength { get; }

Return the length of the ID in bytes.

public ICipherParameters Parameters { get; }

Return the base parameters associated with this ID.

public ParametersWithID(ICipherParameters parameters, byte[] id)

Basic constructor.

public ParametersWithID(ICipherParameters parameters, byte[] id, int idOff, int idLen)

Constructor with offset and length for ID.

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

Copy the ID into a segment of a destination buffer.

public byte[] GetID()

Return a copy of the ID.