de.flexiprovider.core.kdf
Class PBKDF1_PKCS12ParameterSpec
java.lang.Object
|
+--javax.crypto.spec.PBEParameterSpec
|
+--de.flexiprovider.core.pbe.PBEParameterSpec
|
+--de.flexiprovider.core.kdf.PBKDF1_PKCS12ParameterSpec
- All Implemented Interfaces:
- AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec
- public class PBKDF1_PKCS12ParameterSpec
- extends PBEParameterSpec
This class provides a specification for the parameters used by the PBKDF1 key
derivation function specified in PKCS #12 v1.0. The
parameters consist of a salt, an iteration count, and a purpose
identification byte.
|
Field Summary |
static byte |
ID_ENCRYPTION
Constant identifying use for encryption/decryption. |
static byte |
ID_INTEGRITY
Constant identifying use for integrity protection. |
static byte |
ID_IV
Constant identifying use for generating IVs. |
|
Constructor Summary |
PBKDF1_PKCS12ParameterSpec(byte[] salt,
int iterationCount,
byte id)
Construct new PBKDF1 parameters using the given salt, iteration count,
and purpose identification byte. |
|
Method Summary |
byte |
getID()
|
| Methods inherited from class javax.crypto.spec.PBEParameterSpec |
getIterationCount, getSalt |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID_ENCRYPTION
public static final byte ID_ENCRYPTION
- Constant identifying use for encryption/decryption.
ID_IV
public static final byte ID_IV
- Constant identifying use for generating IVs.
ID_INTEGRITY
public static final byte ID_INTEGRITY
- Constant identifying use for integrity protection.
PBKDF1_PKCS12ParameterSpec
public PBKDF1_PKCS12ParameterSpec(byte[] salt,
int iterationCount,
byte id)
- Construct new PBKDF1 parameters using the given salt, iteration count,
and purpose identification byte.
- Parameters:
salt - the saltiterationCount - the iteration countid - the purpose identification byte
getID
public byte getID()
- Returns:
- the purpose identification byte