Class KDFFeedbackParameters
java.lang.Object
org.bouncycastle.crypto.internal.params.KDFFeedbackParameters
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic KDFFeedbackParameterscreateWithCounter(int counterLocation, byte[] ki, byte[] iv, byte[] fixedInputData, int r) static KDFFeedbackParameterscreateWithoutCounter(byte[] ki, byte[] iv, byte[] fixedInputData) intbyte[]byte[]getIV()byte[]getKI()intgetR()boolean
-
Field Details
-
BEFORE_ITER
public static final int BEFORE_ITER- See Also:
-
AFTER_ITER
public static final int AFTER_ITER- See Also:
-
AFTER_FIXED
public static final int AFTER_FIXED- See Also:
-
-
Method Details
-
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()
-