Class SHA3Digest

  • All Implemented Interfaces:
    Digest, ExtendedDigest

    public class SHA3Digest
    extends KeccakDigest
    implementation of SHA-3 based on following KeccakNISTInterface.c from http://keccak.noekeon.org/

    Following the naming conventions used in the C source code to enable easy review of the implementation.

    • Constructor Detail

      • SHA3Digest

        public SHA3Digest()
      • SHA3Digest

        public SHA3Digest​(int bitLength)
      • 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