Table of Contents

Class PbeParametersGenerator

Namespace
Org.BouncyCastle.Crypto
Assembly
BouncyCastle.Cryptography.dll
public abstract class PbeParametersGenerator
Inheritance
PbeParametersGenerator
Derived
Inherited Members

Constructors

PbeParametersGenerator()

protected PbeParametersGenerator()

Fields

mIterationCount

protected int mIterationCount

Field Value

int

mPassword

protected byte[] mPassword

Field Value

byte[]

mSalt

protected byte[] mSalt

Field Value

byte[]

Properties

IterationCount

public virtual int IterationCount { get; }

Property Value

int

Password

public virtual byte[] Password { get; }

Property Value

byte[]

Salt

public virtual byte[] Salt { get; }

Property Value

byte[]

Methods

GenerateDerivedMacParameters(int)

public abstract ICipherParameters GenerateDerivedMacParameters(int keySize)

Parameters

keySize int

Returns

ICipherParameters

GenerateDerivedParameters(string, int)

public abstract ICipherParameters GenerateDerivedParameters(string algorithm, int keySize)

Parameters

algorithm string
keySize int

Returns

ICipherParameters

GenerateDerivedParameters(string, int, int)

public abstract ICipherParameters GenerateDerivedParameters(string algorithm, int keySize, int ivSize)

Parameters

algorithm string
keySize int
ivSize int

Returns

ICipherParameters

Init(byte[], byte[], int)

public virtual void Init(byte[] password, byte[] salt, int iterationCount)

Parameters

password byte[]
salt byte[]
iterationCount int

Init(ReadOnlySpan<byte>, ReadOnlySpan<byte>, int)

public virtual void Init(ReadOnlySpan<byte> password, ReadOnlySpan<byte> salt, int iterationCount)

Parameters

password ReadOnlySpan<byte>
salt ReadOnlySpan<byte>
iterationCount int

Pkcs12PasswordToBytes(char[])

public static byte[] Pkcs12PasswordToBytes(char[] password)

Parameters

password char[]

Returns

byte[]

Pkcs12PasswordToBytes(char[], bool)

public static byte[] Pkcs12PasswordToBytes(char[] password, bool wrongPkcs12Zero)

Parameters

password char[]
wrongPkcs12Zero bool

Returns

byte[]

Pkcs12PasswordToBytes(ReadOnlySpan<char>)

public static byte[] Pkcs12PasswordToBytes(ReadOnlySpan<char> password)

Parameters

password ReadOnlySpan<char>

Returns

byte[]

Pkcs12PasswordToBytes(ReadOnlySpan<char>, bool)

public static byte[] Pkcs12PasswordToBytes(ReadOnlySpan<char> password, bool wrongPkcs12Zero)

Parameters

password ReadOnlySpan<char>
wrongPkcs12Zero bool

Returns

byte[]

Pkcs5PasswordToBytes(char[])

public static byte[] Pkcs5PasswordToBytes(char[] password)

Parameters

password char[]

Returns

byte[]

Pkcs5PasswordToBytes(ReadOnlySpan<char>)

public static byte[] Pkcs5PasswordToBytes(ReadOnlySpan<char> password)

Parameters

password ReadOnlySpan<char>

Returns

byte[]

Pkcs5PasswordToUtf8Bytes(char[])

public static byte[] Pkcs5PasswordToUtf8Bytes(char[] password)

Parameters

password char[]

Returns

byte[]

Pkcs5PasswordToUtf8Bytes(ReadOnlySpan<char>)

public static byte[] Pkcs5PasswordToUtf8Bytes(ReadOnlySpan<char> password)

Parameters

password ReadOnlySpan<char>

Returns

byte[]