public static final class FipsKDF.CounterModeParametersBuilder extends FipsParameters
Modifier and Type | Method and Description |
---|---|
FipsKDF.CounterModeParameters |
using(byte[] ki,
boolean isPrefix,
byte[] label,
byte[] context,
int L)
Build method for parameters which builds fixed input as outlined in SP 800-108 with the fixed input
as a prefix, or suffix, to the counter.
|
FipsKDF.CounterModeParameters |
using(byte[] ki,
byte[] fixedInputPrefix)
Return a new parameter set for ki and a prefix.
|
FipsKDF.CounterModeParameters |
using(byte[] ki,
byte[] fixedInputPrefix,
byte[] fixedInputSuffix)
Return a new parameter set for ki and the prefix/suffix data.
|
FipsKDF.CounterModeParametersBuilder |
withPRFAndR(FipsKDF.PRF prf,
int r)
Return a new parameters builder based around the passed in PRF and counter size.
|
getAlgorithm
public FipsKDF.CounterModeParametersBuilder withPRFAndR(FipsKDF.PRF prf, int r)
prf
- the PRF to be used in the final KDF.r
- the length in bits of the counter to be used.public FipsKDF.CounterModeParameters using(byte[] ki, byte[] fixedInputPrefix)
ki
- derivation key for the KDF.fixedInputPrefix
- prefix data to come before the counter during calculation.public FipsKDF.CounterModeParameters using(byte[] ki, byte[] fixedInputPrefix, byte[] fixedInputSuffix)
ki
- derivation key for the KDF.fixedInputPrefix
- prefix data to come before the counter during calculation.fixedInputSuffix
- suffix data to come after the counter during calculation.public FipsKDF.CounterModeParameters using(byte[] ki, boolean isPrefix, byte[] label, byte[] context, int L)
ki
- input key.isPrefix
- is the fixed input a prefix or a suffix.label
- label - fixed input component.context
- context - fixed input component.L
- number of bits per request for the KDF these parameters will initialise - fixed input component.