Class SHA512_256MessageDigest


  • public class SHA512_256MessageDigest
    extends MessageDigestSpi
    SHA-512/256 hashing implementation as defined in FIPS PUB 180-4 Secure Hash Standard
    • Field Detail

      • K

        private static final long[] K
      • tempByte

        private final byte[] tempByte
      • H

        private final long[] H
      • W

        private final long[] W
      • block

        private final byte[] block
      • messageLength

        private long messageLength
      • bytesLoaded

        private int bytesLoaded
    • Constructor Detail

      • SHA512_256MessageDigest

        public SHA512_256MessageDigest()
    • Method Detail

      • resetH

        protected static void resetH​(long[] H)
      • resultFromH

        protected byte[] resultFromH​(long[] H)
      • engineUpdate

        protected void engineUpdate​(byte[] input,
                                    int offset,
                                    int len)
        Specified by:
        engineUpdate in class MessageDigestSpi
      • processBlock

        private void processBlock()
      • sigma0

        private static long sigma0​(long a)
      • sigma1

        private static long sigma1​(long e)
      • ch

        private static long ch​(long e,
                               long f,
                               long g)
      • maj

        private static long maj​(long a,
                                long b,
                                long c)
      • rotr

        private static long rotr​(long x,
                                 int bits)