diff options
author | David Hook <dgh@cryptoworkshop.com> | 2014-06-16 09:22:08 +0400 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2014-06-16 09:22:08 +0400 |
commit | b370f72f3be2d03912020af42d45e97d5db2398e (patch) | |
tree | 62503a2e99ba184878b74874d36af1f5763aff1d /prov | |
parent | ca72ba5bf927de4be698046367f4e1f470a79825 (diff) |
JavaDoc
Diffstat (limited to 'prov')
-rw-r--r-- | prov/src/main/java/org/bouncycastle/jcajce/spec/PBKDF2KeySpec.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/prov/src/main/java/org/bouncycastle/jcajce/spec/PBKDF2KeySpec.java b/prov/src/main/java/org/bouncycastle/jcajce/spec/PBKDF2KeySpec.java index 214a5eb2..09a9bd0b 100644 --- a/prov/src/main/java/org/bouncycastle/jcajce/spec/PBKDF2KeySpec.java +++ b/prov/src/main/java/org/bouncycastle/jcajce/spec/PBKDF2KeySpec.java @@ -4,11 +4,23 @@ import javax.crypto.spec.PBEKeySpec; import org.bouncycastle.asn1.x509.AlgorithmIdentifier; +/** + * Extension of PBEKeySpec which takes into account the PRF algorithm setting available in PKCS#5 PBKDF2. + */ public class PBKDF2KeySpec extends PBEKeySpec { private AlgorithmIdentifier prf; + /** + * Base constructor. + * + * @param password password to use as the seed of the PBE key generator. + * @param salt salt to use in the generator, + * @param iterationCount iteration count to use in the generator. + * @param keySize size of the key to be generated. + * @param prf identifier and parameters for the PRF algorithm to use. + */ public PBKDF2KeySpec(char[] password, byte[] salt, int iterationCount, int keySize, AlgorithmIdentifier prf) { super(password, salt, iterationCount, keySize); |