|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.crypt.pkcs.PBEParameter
edu.vt.middleware.crypt.pkcs.PBKDF2Parameters
public class PBKDF2Parameters
Describes the PBKDF2-params type defined in PKCS#5v2.
| Field Summary |
|---|
| Fields inherited from class edu.vt.middleware.crypt.pkcs.PBEParameter |
|---|
iterationCount, salt |
| Constructor Summary | |
|---|---|
PBKDF2Parameters(byte[] saltBytes,
int iterations)
Creates a new PBKDF2 parameter with given values. |
|
PBKDF2Parameters(byte[] saltBytes,
int iterations,
int keyByteLength)
Creates a new PBKDF2 parameter with given values. |
|
| Method Summary | |
|---|---|
static PBKDF2Parameters |
decode(org.bouncycastle.asn1.DERSequence params)
Decodes a DER sequence of PBKDF2 parameters into an instance of this class. |
int |
getLength()
Gets the length of the derived key. |
void |
setLength(int byteLength)
Sets the length of the derived key. |
| Methods inherited from class edu.vt.middleware.crypt.pkcs.PBEParameter |
|---|
getIterationCount, getSalt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PBKDF2Parameters(byte[] saltBytes,
int iterations)
saltBytes - Bytes of digest salt.iterations - Number of iterations of mixing function.
public PBKDF2Parameters(byte[] saltBytes,
int iterations,
int keyByteLength)
saltBytes - Bytes of digest salt.iterations - Number of iterations of mixing function.keyByteLength - Size of derived key in bytes (octets).| Method Detail |
|---|
public static PBKDF2Parameters decode(org.bouncycastle.asn1.DERSequence params)
params - PBKDF2 parameters as a DER sequence.
PBKDF2Parameters.public int getLength()
public void setLength(int byteLength)
byteLength - Length of derived key in bytes (octets).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||