Package org.bouncycastle.jcajce.spec
Class TwoStepKDFParameterSpec
java.lang.Object
org.bouncycastle.jcajce.spec.TwoStepKDFParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionReturn the counter locationbyte[]
getInfo()
Returns the info field, which may be empty (null is converted to empty).byte[]
getIV()
Return the optional IV, only used with Feedback Mode.Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros.int
getR()
Return R, the size in bits of the counter, if one is required.byte[]
getSalt()
Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros.
-
Method Details
-
getKDFMode
Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros.- Returns:
- the salt, or null
-
getSalt
public byte[] getSalt()Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros.- Returns:
- the salt, or null
-
getInfo
public byte[] getInfo()Returns the info field, which may be empty (null is converted to empty).- Returns:
- the info field, never null
-
getR
public int getR()Return R, the size in bits of the counter, if one is required.- Returns:
- size of counter in bits.
-
getCounterLocation
Return the counter location- Returns:
- the counter location.
-
getIV
public byte[] getIV()Return the optional IV, only used with Feedback Mode.- Returns:
- the iv;
-