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
Parameters for the Double Pipeline Mode parameters builder.
-
Method Summary
Modifier and TypeMethodDescriptionusing(byte[] ki, byte[] fixedInputData) Return a new parameter set for ki and a prefix.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.withPRF(FipsKDF.PRF prf) Return a new parameters builder based around the passed in PRF.withR(int r) Return a new parameters builder based around the passed in counter size.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 Details
-
withPRF
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
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
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
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.
-