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

Org.BouncyCastle.Crypto.Parameters.ParametersWithUkm

Wrapper class for parameters which include User Key Material (UKM).
public ICipherParameters Parameters { get; }

Return the base parameters associated with this UKM.

public int UkmLength { get; }

Return the length of the UKM in bytes.

public ParametersWithUkm(ICipherParameters parameters, byte[] ukm)

Basic constructor.

public ParametersWithUkm(ICipherParameters parameters, byte[] ukm, int ukmOff, int ukmLen)

Constructor with offset and length for UKM.

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

Copy the UKM into a segment of a destination buffer.

public byte[] GetUkm()

Return a copy of the UKM.