Class CSHAKEDigest

    • Constructor Detail

      • CSHAKEDigest

        public CSHAKEDigest​(int bitLength,
                            byte[] N,
                            byte[] S)
        Base constructor.
        Parameters:
        bitLength - bit length of the underlying SHAKE function, 128 or 256.
        N - the function name string, note this is reserved for use by NIST. Avoid using it if not required.
        S - the customization string - available for local use.
    • Method Detail

      • doOutput

        public int doOutput​(byte[] out,
                            int outOff,
                            int outLen)
        Description copied from interface: Xof
        Start outputting the results of the final calculation for this digest. Unlike doFinal, this method will continue producing output until the Xof is explicitly reset, or signals otherwise.
        Specified by:
        doOutput in interface Xof
        Overrides:
        doOutput in class SHAKEDigest
        Parameters:
        out - output array to write the output bytes to.
        outOff - offset to start writing the bytes at.
        outLen - the number of output bytes requested.
        Returns:
        the number of bytes written
      • reset

        public void reset()
        Description copied from interface: Digest
        reset the digest back to it's initial state.
        Specified by:
        reset in interface Digest
        Overrides:
        reset in class KeccakDigest