|
|||||||||
| 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.PBKDF1
This class implements the PBKDF1 key derivation function as specified in PKCS #5 v2.0.
| Inner Class Summary | |
static class |
PBKDF1.MD5
|
static class |
PBKDF1.SHA1
|
| Constructor Summary | |
protected |
PBKDF1(MessageDigest md)
Constructor. |
| 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 |
|
| Constructor Detail |
protected PBKDF1(MessageDigest md)
md - the message digest| Method Detail |
public void init(byte[] secret,
AlgorithmParameterSpec params)
throws InvalidKeyException,
InvalidAlgorithmParameterException
PBEParameterSpec.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
PBEParameterSpec.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 | ||||||||