Table of Contents

Class KeyParameter

Namespace
Org.BouncyCastle.Crypto.Parameters
Assembly
BouncyCastle.Cryptography.dll
public class KeyParameter : ICipherParameters
Inheritance
KeyParameter
Implements
Derived
Inherited Members

Constructors

KeyParameter(byte[])

public KeyParameter(byte[] key)

Parameters

key byte[]

KeyParameter(byte[], int, int)

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

Parameters

key byte[]
keyOff int
keyLen int

KeyParameter(ReadOnlySpan<byte>)

public KeyParameter(ReadOnlySpan<byte> key)

Parameters

key ReadOnlySpan<byte>

Properties

KeyLength

public int KeyLength { get; }

Property Value

int

Methods

CopyTo(byte[], int, int)

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

Parameters

buf byte[]
off int
len int

Create<TState>(int, TState, SpanAction<byte, TState>)

public static KeyParameter Create<TState>(int length, TState state, SpanAction<byte, TState> action)

Parameters

length int
state TState
action SpanAction<byte, TState>

Returns

KeyParameter

Type Parameters

TState

GetKey()

public byte[] GetKey()

Returns

byte[]

Reverse()

public KeyParameter Reverse()

Returns

KeyParameter