Class SHA256Digest


  • public class SHA256Digest
    extends Digest
    This class implements the SHA-256 message digest algorithm.
    • Method Detail

      • getAlgorithm

        public final java.lang.String getAlgorithm()
        Returns the name of the algorithm.
        Specified by:
        getAlgorithm in class Digest
        Returns:
        "SHA-256".
      • getBlockLength

        public final int getBlockLength()
        Returns the block length.
        Specified by:
        getBlockLength in class Digest
        Returns:
        64.
      • getDigestLength

        public final int getDigestLength()
        Returns the message digest length.
        Specified by:
        getDigestLength in class Digest
        Returns:
        32.
      • process

        protected final byte[] process​(byte[] data)
        Specified by:
        process in class Digest