Class FipsOutputXOFCalculator<T extends FipsParameters>

  • Type Parameters:
    T - The parameters class for this verifier.
    All Implemented Interfaces:
    OutputXOFCalculator<T>

    public abstract class FipsOutputXOFCalculator<T extends FipsParameters>
    extends java.lang.Object
    implements OutputXOFCalculator<T>
    Base class for a FIPS extendable output function calculator.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract int getFunctionOutput​(byte[] output, int off, int outLen)
      Output the function output for what has been written to the calculator's output stream.
      byte[] getFunctionOutput​(int outLen)
      Return the outLen bytes of function output for what has been written to the calculator's output stream.
      abstract UpdateOutputStream getFunctionStream()
      Returns a stream that will accept data for the purpose of calculating a MAC.
      abstract T getParameters()
      Return the parameters for this MAC calculator.
      abstract void reset()
      Reset the calculator back to its initial state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FipsOutputXOFCalculator

        public FipsOutputXOFCalculator()
    • Method Detail

      • getFunctionOutput

        public byte[] getFunctionOutput​(int outLen)
        Description copied from interface: OutputXOFCalculator
        Return the outLen bytes of function output for what has been written to the calculator's output stream.
        Specified by:
        getFunctionOutput in interface OutputXOFCalculator<T extends FipsParameters>
        Parameters:
        outLen - the number of output bytes requested.
        Returns:
        a byte array containing outLen bytes of output.
      • getFunctionOutput

        public abstract int getFunctionOutput​(byte[] output,
                                              int off,
                                              int outLen)
        Description copied from interface: OutputXOFCalculator
        Output the function output for what has been written to the calculator's output stream.
        Specified by:
        getFunctionOutput in interface OutputXOFCalculator<T extends FipsParameters>
        Parameters:
        output - output array to write the output bytes to.
        off - offset to start writing the bytes at.
        outLen - the number of output bytes requested.
        Returns:
        the number of bytes written