public static final class FipsKDF.DoublePipelineModeParametersBuilder extends FipsParameters
| Modifier and Type | Method and Description |
|---|---|
FipsKDF.DoublePipelineModeParameters |
using(byte[] ki,
byte[] fixedInputData)
Return a new parameter set for ki and a prefix.
|
FipsKDF.DoublePipelineModeParameters |
using(byte[] ki,
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.DoublePipelineModeParametersBuilder |
withPRF(FipsKDF.PRF prf)
Return a new parameters builder based around the passed in PRF.
|
FipsKDF.DoublePipelineModeParametersBuilder |
withR(int r)
Return a new parameters builder based around the passed in counter size.
|
FipsKDF.DoublePipelineModeParametersBuilder |
withRAndLocation(int r,
FipsKDF.CounterLocation counterLocation)
Return a new parameters builder based around the passed in counter size and counter position.
|
getAlgorithmpublic FipsKDF.DoublePipelineModeParametersBuilder withPRF(FipsKDF.PRF prf)
prf - the PRF to be used in the final KDF.public FipsKDF.DoublePipelineModeParametersBuilder withR(int r)
r - the length in bits of the counter to be used.public FipsKDF.DoublePipelineModeParametersBuilder withRAndLocation(int r, FipsKDF.CounterLocation counterLocation)
r - the length in bits of the counter to be used.counterLocation - the location of the counter in data passed to the PRF during calculation.public FipsKDF.DoublePipelineModeParameters using(byte[] ki, byte[] fixedInputData)
ki - derivation key for the KDF.fixedInputData - fixed input data to use in calculation.public FipsKDF.DoublePipelineModeParameters using(byte[] ki, byte[] label, byte[] context, int L)
ki - input key.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.