Class SHA3Digest

  • All Implemented Interfaces:
    io.anyline.nfc.bouncycastle.crypto.Digest , io.anyline.nfc.bouncycastle.crypto.ExtendedDigest

    
    public class SHA3Digest
    extends KeccakDigest
                        

    implementation of SHA-3 based on following KeccakNISTInterface.c from https://keccak.noekeon.org/

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getAlgorithmName() return the algorithm name
      int doFinal(Array<byte> out, int outOff) close the digest, producing the final digest value.
      • Methods inherited from class io.anyline.nfc.bouncycastle.crypto.digests.KeccakDigest

        getByteLength, getDigestSize, reset, update, update
      • Methods inherited from class java.lang.Object

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

      • SHA3Digest

        SHA3Digest()
      • SHA3Digest

        SHA3Digest(int bitLength)
    • Method Detail

      • doFinal

         int doFinal(Array<byte> out, int outOff)

        close the digest, producing the final digest value. The doFinal call leaves the digest reset.

        Parameters:
        out - the array the digest is to be copied into.
        outOff - the offset into the out array the digest is to start at.