Class 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 Detail

      • 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.