| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected byte[] | |
| protected byte[] |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract CipherParameters | Returns: a parameters object representing a key.the length, in bits, of the key required. keySize)generate derived parameters for a key of length keySize. |
| public int | |
| public byte[] | |
| public byte[] | |
| public void | init(byte[]
the password converted into bytes (see below). password, byte[] the salt to be mixed with the password. salt, int the number of iterations the "mixing" function
is to be applied for. iterationCount)initialise the PBE generator. |
| public static byte[] | Returns: a byte array representing the password.a character array representing the password. password)converts a password to a byte array according to the scheme in PKCS5 (UTF-8, no padding) |
| iterationCount | back to summary |
|---|---|
| protected int iterationCount | |
| password | back to summary |
|---|---|
| protected byte[] password | |
| salt | back to summary |
|---|---|
| protected byte[] salt | |
| PBEParametersGenerator | back to summary |
|---|---|
| protected PBEParametersGenerator() base constructor. | |
| generateDerivedParameters | back to summary |
|---|---|
| public abstract CipherParameters generateDerivedParameters(int keySize) generate derived parameters for a key of length keySize.
| |
| getIterationCount | back to summary |
|---|---|
| public int getIterationCount() return the iteration count.
| |
| getPassword | back to summary |
|---|---|
| public byte[] getPassword() return the password byte array.
| |
| getSalt | back to summary |
|---|---|
| public byte[] getSalt() return the salt byte array.
| |
| init | back to summary |
|---|---|
| public void init(byte[] password, byte[] salt, int iterationCount) initialise the PBE generator.
| |
| PKCS5PasswordToUTF8Bytes | back to summary |
|---|---|
| public static byte[] PKCS5PasswordToUTF8Bytes(char[] password) converts a password to a byte array according to the scheme in PKCS5 (UTF-8, no padding)
| |