| Modifier and Type | Field and Description |
|---|---|
| private static final AlgorithmIdentifier | |
| private final int | |
| private final AlgorithmIdentifier |
| Access | Constructor and Description |
|---|---|
| public | PBKDF2ParameterSpec(byte[]
salt to use. salt, int iteration count for PBE algorithm. iterationCount, int keySize in bits. keySize)Base constructor with the default PRF. |
| public | PBKDF2ParameterSpec(byte[]
salt to use. salt, int iteration count for PBE algorithm. iterationCount, int keySize in bits. keySize, DigestAlgorithm Algorithm identifying the PRF to use. prfAlgorithm)Constructor that allows specifying a PRF using an Algorithm. |
| public | PBKDF2ParameterSpec(byte[]
salt to use. salt, int iteration count for PBE algorithm. iterationCount, int keySize in bits. keySize, AlgorithmIdentifier AlgorithmIdentifier for the PRF to use. prf)Constructor that allows specifying a PRF. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the size of the generated key required.Return the key size (in bits) for the key to be derived. |
| public AlgorithmIdentifier | |
| public boolean | Returns: true if this spec uses the default PRF, false otherwise.Return true if this spec is for the default PRF (HmacSHA1), false otherwise. |
| defaultPRF | back to summary |
|---|---|
| private static final AlgorithmIdentifier defaultPRF | |
| keySize | back to summary |
|---|---|
| private final int keySize | |
| prf | back to summary |
|---|---|
| private final AlgorithmIdentifier prf | |
| PBKDF2ParameterSpec | back to summary |
|---|---|
| public PBKDF2ParameterSpec(byte[] salt, int iterationCount, int keySize) Base constructor with the default PRF.
| |
| PBKDF2ParameterSpec | back to summary |
|---|---|
| public PBKDF2ParameterSpec(byte[] salt, int iterationCount, int keySize, DigestAlgorithm prfAlgorithm) Constructor that allows specifying a PRF using an Algorithm.
| |
| PBKDF2ParameterSpec | back to summary |
|---|---|
| public PBKDF2ParameterSpec(byte[] salt, int iterationCount, int keySize, AlgorithmIdentifier prf) Constructor that allows specifying a PRF.
| |
| getKeySize | back to summary |
|---|---|
| public int getKeySize() Return the key size (in bits) for the key to be derived.
| |
| getPrf | back to summary |
|---|---|
| public AlgorithmIdentifier getPrf() Return an AlgorithmIdentifier representing the PRF.
| |
| isDefaultPrf | back to summary |
|---|---|
| public boolean isDefaultPrf() Return true if this spec is for the default PRF (HmacSHA1), false otherwise.
| |