All Superinterfaces:
GordianConsumer

public interface GordianXof extends GordianConsumer
GordianKnot interface for extendable Output Functions.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    finish(byte[] pOutBuf, int pOutOff, int pOutLen)
    Output the results of the final calculation for this digest to pOutLen number of bytes.
    int
    output(byte[] pOutBuf, int pOutOff, int pOutLen)
    Start outputting the results of the final calculation for this digest.

    Methods inherited from interface io.github.tonywasher.joceanus.gordianknot.api.base.GordianConsumer

    reset, update, update, update
  • Method Details

    • finish

      int finish(byte[] pOutBuf, int pOutOff, int pOutLen)
      Output the results of the final calculation for this digest to pOutLen number of bytes.
      Parameters:
      pOutBuf - output array to write the output bytes to.
      pOutOff - offset to start writing the bytes at.
      pOutLen - the number of output bytes requested.
      Returns:
      the number of bytes written
    • output

      int output(byte[] pOutBuf, int pOutOff, int pOutLen)
      Start outputting the results of the final calculation for this digest. Unlike finish, this method will continue producing output until the Xof is explicitly reset, or signals otherwise.
      Parameters:
      pOutBuf - output array to write the output bytes to.
      pOutOff - offset to start writing the bytes at.
      pOutLen - the number of output bytes requested.
      Returns:
      the number of bytes written