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

Org.BouncyCastle.Crypto.Parameters.ParametersWithSBox

Wrapper class for parameters which include a substitution box (S-Box).
public ICipherParameters Parameters { get; }

Return the base parameters associated with this S-Box.

public int SBoxLength { get; }

Return the length of the S-Box in bytes.

public ParametersWithSBox(ICipherParameters parameters, byte[] sBox)

Basic constructor.

public ParametersWithSBox(ICipherParameters parameters, byte[] sBox, int sBoxOff, int sBoxLen)

Constructor with offset and length for S-Box.

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

Copy the S-Box into a segment of a destination buffer.

public byte[] GetSBox()

Return a copy of the S-Box.