|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.flexiprovider.api.KeyDerivation
|
+--de.flexiprovider.core.kdf.PBKDF2
This class implements the PBKDF2 key derivation function as specified in PKCS #5 v2.0.
| Field Summary | |
static java.lang.String |
OID
The OID of PBKDF2. |
| Constructor Summary | |
PBKDF2()
|
|
| Method Summary | |
byte[] |
deriveKey(int keySize)
Start the derivation process and return the derived key. |
void |
init(byte[] secret,
AlgorithmParameterSpec params)
Initialize this KDF with a secret and parameters. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final java.lang.String OID
| Constructor Detail |
public PBKDF2()
| Method Detail |
public void init(byte[] secret,
AlgorithmParameterSpec params)
throws InvalidKeyException,
InvalidAlgorithmParameterException
PBKDF2ParameterSpec.init in class KeyDerivationsecret - the secret from which to derive the keyparams - the parametersInvalidKeyException - if the secret is null.InvalidAlgorithmParameterException - if the parameters are not an instance of
PBKDF2ParameterSpec.public byte[] deriveKey(int keySize)
deriveKey in class KeyDerivationkeySize - the desired length of the derived key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||