| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| private final T | |
| 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, specifically for use with a MAC. |
| 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 abstract CipherParameters | Returns: a parameters object representing a key and an IV.the length, in bits, of the key required. keySize, int the length, in bits, of the iv required. ivSize)generate derived parameters for a key of length keySize, and an initialisation vector (IV) of length ivSize. |
| public int | |
| public T | getParameters()
Implements org. |
| 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 PKCS12 (unicode, big endian, 2 zero pad bytes at the end). |
| 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 (ascii, no padding) |
| 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 | |
| parameters | back to summary |
|---|---|
| private final T parameters | |
| password | back to summary |
|---|---|
| protected byte[] password | |
| salt | back to summary |
|---|---|
| protected byte[] salt | |
| PBEParametersGenerator | back to summary |
|---|---|
| protected PBEParametersGenerator(T parameters) base constructor. | |
| generateDerivedMacParameters | back to summary |
|---|---|
| public abstract CipherParameters generateDerivedMacParameters(int keySize) generate derived parameters for a key of length keySize, specifically for use with a MAC.
| |
| generateDerivedParameters | back to summary |
|---|---|
| public abstract CipherParameters generateDerivedParameters(int keySize) generate derived parameters for a key of length keySize.
| |
| generateDerivedParameters | back to summary |
|---|---|
| public abstract CipherParameters generateDerivedParameters(int keySize, int ivSize) generate derived parameters for a key of length keySize, and an initialisation vector (IV) of length ivSize.
| |
| getIterationCount | back to summary |
|---|---|
| public int getIterationCount() return the iteration count.
| |
| getParameters | back to summary |
|---|---|
| public T getParameters() Implements org. Doc from org. Return the parameters for this deriver.
| |
| 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.
| |
| PKCS12PasswordToBytes | back to summary |
|---|---|
| public static byte[] PKCS12PasswordToBytes(char[] password) converts a password to a byte array according to the scheme in PKCS12 (unicode, big endian, 2 zero pad bytes at the end).
| |
| PKCS5PasswordToBytes | back to summary |
|---|---|
| public static byte[] PKCS5PasswordToBytes(char[] password) converts a password to a byte array according to the scheme in PKCS5 (ascii, no padding)
| |
| 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)
| |