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

Org.BouncyCastle.Crypto.Parameters.KeyParameter

Base class for symmetric key parameters.
public int KeyLength { get; }

Gets the length of the key material in bytes.

public KeyParameter(byte[] key)

Initializes a new instance of KeyParameter.

public KeyParameter(byte[] key, int keyOff, int keyLen)

Initializes a new instance of KeyParameter.

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

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

public byte[] GetKey()

Gets the key material.