Class SHA3Digest

    • Constructor Detail

      • SHA3Digest

        public SHA3Digest()
      • SHA3Digest

        public SHA3Digest​(int bitLength)
      • SHA3Digest

        public SHA3Digest​(byte[] encodedState)
      • SHA3Digest

        public SHA3Digest​(SHA3Digest source)
    • Method Detail

      • doFinal

        public int doFinal​(byte[] out,
                           int outOff)
        Description copied from interface: Digest
        close the digest, producing the final digest value. The doFinal call leaves the digest reset.
        Specified by:
        doFinal in interface Digest
        Overrides:
        doFinal in class KeccakDigest
        Parameters:
        out - the array the digest is to be copied into.
        outOff - the offset into the out array the digest is to start at.
      • doFinal

        protected int doFinal​(byte[] out,
                              int outOff,
                              byte partialByte,
                              int partialBits)
        Overrides:
        doFinal in class KeccakDigest
      • copy

        public Memoable copy()
        Description copied from interface: Memoable
        Produce a copy of this object with its configuration and in its current state.

        The returned object may be used simply to store the state, or may be used as a similar object starting from the copied state.

        Specified by:
        copy in interface Memoable
      • reset

        public void reset​(Memoable other)
        Description copied from interface: Memoable
        Restore a copied object state into this object.

        Implementations of this method should try to avoid or minimise memory allocation to perform the reset.

        Specified by:
        reset in interface Memoable
        Parameters:
        other - an object originally copied from an object of the same type as this instance.