Package org.bouncycastle.crypto.fips
Class FipsKDF.DoublePipelineModeParametersBuilder
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsParameters
-
- org.bouncycastle.crypto.fips.FipsKDF.DoublePipelineModeParametersBuilder
-
- All Implemented Interfaces:
Parameters
- Enclosing class:
- FipsKDF
public static final class FipsKDF.DoublePipelineModeParametersBuilder extends FipsParameters
Parameters for the Double Pipeline Mode parameters builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.bouncycastle.crypto.fips.FipsParameters
getAlgorithm
-
-
-
-
Method Detail
-
withPRF
public FipsKDF.DoublePipelineModeParametersBuilder withPRF(FipsKDF.PRF prf)
Return a new parameters builder based around the passed in PRF.- Parameters:
prf
- the PRF to be used in the final KDF.- Returns:
- a new parameters builder.
-
withR
public FipsKDF.DoublePipelineModeParametersBuilder withR(int r)
Return a new parameters builder based around the passed in counter size. The counter will be after the iteration data.- Parameters:
r
- the length in bits of the counter to be used.- Returns:
- a new parameters builder.
-
withRAndLocation
public FipsKDF.DoublePipelineModeParametersBuilder withRAndLocation(int r, FipsKDF.CounterLocation counterLocation)
Return a new parameters builder based around the passed in counter size and counter position.- Parameters:
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.- Returns:
- a new parameters builder.
-
using
public FipsKDF.DoublePipelineModeParameters using(byte[] ki, byte[] fixedInputData)
Return a new parameter set for ki and a prefix.- Parameters:
ki
- derivation key for the KDF.fixedInputData
- fixed input data to use in calculation.- Returns:
- a DoublePipelineModeParameters object.
-
using
public 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.- Parameters:
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.- Returns:
- a DoublePipelineModeParameters object.
-
-