Org.BouncyCastle.Crypto.PbeParametersGenerator
namespace Org.BouncyCastle.Crypto
{
public abstract class PbeParametersGenerator
{
protected byte[] mPassword;
protected byte[] mSalt;
protected int mIterationCount;
public virtual byte[] Password { get; }
public virtual byte[] Salt { get; }
public virtual int IterationCount { get; }
protected PbeParametersGenerator();
public virtual void Init(byte[] password, byte[] salt, int iterationCount);
public abstract ICipherParameters GenerateDerivedParameters(string algorithm, int keySize);
public abstract ICipherParameters GenerateDerivedParameters(string algorithm, int keySize, int ivSize);
public abstract ICipherParameters GenerateDerivedMacParameters(int keySize);
public static byte[] Pkcs5PasswordToBytes(char[] password);
public static byte[] Pkcs5PasswordToUtf8Bytes(char[] password);
public static byte[] Pkcs12PasswordToBytes(char[] password);
public static byte[] Pkcs12PasswordToBytes(char[] password, bool wrongPkcs12Zero);
}
}