Class KDFFeedbackParameters
- java.lang.Object
-
- org.bouncycastle.crypto.internal.params.KDFFeedbackParameters
-
- All Implemented Interfaces:
DerivationParameters
public final class KDFFeedbackParameters extends java.lang.Object implements DerivationParameters
Note that counter is only supported at the location presented in the NIST SP 800-108 specification, not in the additional locations present in the CAVP test vectors.
-
-
Field Summary
Fields Modifier and Type Field Description static intAFTER_FIXEDstatic intAFTER_ITERstatic intBEFORE_ITER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KDFFeedbackParameterscreateWithCounter(int counterLocation, byte[] ki, byte[] iv, byte[] fixedInputData, int r)static KDFFeedbackParameterscreateWithoutCounter(byte[] ki, byte[] iv, byte[] fixedInputData)intgetCounterLocation()byte[]getFixedInputData()byte[]getIV()byte[]getKI()intgetR()booleanuseCounter()
-
-
-
Field Detail
-
BEFORE_ITER
public static final int BEFORE_ITER
- See Also:
- Constant Field Values
-
AFTER_ITER
public static final int AFTER_ITER
- See Also:
- Constant Field Values
-
AFTER_FIXED
public static final int AFTER_FIXED
- See Also:
- Constant Field Values
-
-
Method Detail
-
createWithCounter
public static KDFFeedbackParameters createWithCounter(int counterLocation, byte[] ki, byte[] iv, byte[] fixedInputData, int r)
-
createWithoutCounter
public static KDFFeedbackParameters createWithoutCounter(byte[] ki, byte[] iv, byte[] fixedInputData)
-
getCounterLocation
public int getCounterLocation()
-
getKI
public byte[] getKI()
-
getIV
public byte[] getIV()
-
useCounter
public boolean useCounter()
-
getR
public int getR()
-
getFixedInputData
public byte[] getFixedInputData()
-
-