|
|||||||||
| 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_PKCS12
This class implements the PBKDF1 key derivation function specified in PKCS #12 v1.0. This key derivation function is based on PBKDF1 specified in PKCS #5 v2.0.
| Inner Class Summary | |
static class |
PBKDF1_PKCS12.MD5
|
static class |
PBKDF1_PKCS12.SHA1
|
| Constructor Summary | |
protected |
PBKDF1_PKCS12(MessageDigest md,
int v)
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_PKCS12(MessageDigest md,
int v)
md - the message digestv - the block size in bytes of the message digest| Method Detail |
public void init(byte[] secret,
AlgorithmParameterSpec params)
throws InvalidKeyException,
InvalidAlgorithmParameterException
PBKDF1_PKCS12ParameterSpec.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
PBKDF1_PKCS12ParameterSpec.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 | ||||||||