The scheme is a simple extension of PKCS 5 V2.0 Scheme 1 using MD5 with an iteration count of 1.
| Modifier and Type | Field and Description |
|---|---|
| private Digest |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | deriveKey(PasswordBasedDeriver.
type of key to be calculated. keyType,the number of bytes to be produced. keySizeInBytes)Implements org. |
| public byte[][] | deriveKeyAndIV(PasswordBasedDeriver.
type of key to be calculated. keyType,the number of bytes to be produced. keySizeInBytes, int the number of bytes to be produced. ivSizeInBytes)Implements org. |
| private byte[] | generateDerivedKey(int bytesNeeded)
the derived key function, the ith hash of the password and the salt. |
| public CipherParameters | Returns: a KeyParameter object.the size of the key we want (in bits) keySize)Implements abstract org. |
| public CipherParameters | Returns: a KeyParameter object.the size of the key we want (in bits) keySize)Implements abstract org. |
| public CipherParameters | Returns: a ParametersWithIV object.the size of the key we want (in bits) keySize, int the size of the iv we want (in bits) ivSize)Implements abstract org. |
| public void | init(byte[]
password to use. password, byte[] salt to use. salt)Initialise - note the iteration count for this algorithm is fixed at 1. |
| digest | back to summary |
|---|---|
| private Digest digest | |
| OpenSSLPBEParametersGenerator | back to summary |
|---|---|
| public OpenSSLPBEParametersGenerator(T parameters) Construct a OpenSSL Parameters generator. | |
| deriveKey | back to summary |
|---|---|
| public byte[] deriveKey(PasswordBasedDeriver. Implements org. Doc from org. Derive a key of the given keySizeInBytes length.
| |
| deriveKeyAndIV | back to summary |
|---|---|
| public byte[][] deriveKeyAndIV(PasswordBasedDeriver. Implements org. Doc from org. Derive a key of the given keySizeInBytes length and an iv of ivSizeInBytes length.
| |
| generateDerivedKey | back to summary |
|---|---|
| private byte[] generateDerivedKey(int bytesNeeded) the derived key function, the ith hash of the password and the salt. | |
| generateDerivedMacParameters | back to summary |
|---|---|
| public CipherParameters generateDerivedMacParameters(int keySize) Implements abstract org. Generate a key parameter for use with a MAC derived from the password, salt, and iteration count we are currently initialised with.
| |
| generateDerivedParameters | back to summary |
|---|---|
| public CipherParameters generateDerivedParameters(int keySize) Implements abstract org. Generate a key parameter derived from the password, salt, and iteration count we are currently initialised with.
| |
| generateDerivedParameters | back to summary |
|---|---|
| public CipherParameters generateDerivedParameters(int keySize, int ivSize) Implements abstract org. Generate a key with initialisation vector parameter derived from the password, salt, and iteration count we are currently initialised with.
| |
| init | back to summary |
|---|---|
| public void init(byte[] password, byte[] salt) Initialise - note the iteration count for this algorithm is fixed at 1.
| |