Class SHA1Simple


  • public final class SHA1Simple
    extends java.lang.Object
    SHA-1 message digest class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int h0  
      private int h1  
      private int h2  
      private int h3  
      private int h4  
      private byte[] temp  
    • Constructor Summary

      Constructors 
      Constructor Description
      SHA1Simple()
      Create a new SHA-1 message digest hasher.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] calculateHash​(byte[] buffer)  
      byte[] calculateHash​(byte[] buffer, int offset, int length)  
      private void transform​(byte[] M, int pos)  
      • Methods inherited from class java.lang.Object

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

      • h0

        private int h0
      • h1

        private int h1
      • h2

        private int h2
      • h3

        private int h3
      • h4

        private int h4
      • temp

        private final byte[] temp
    • Constructor Detail

      • SHA1Simple

        public SHA1Simple()
        Create a new SHA-1 message digest hasher.
    • Method Detail

      • transform

        private void transform​(byte[] M,
                               int pos)
      • calculateHash

        public byte[] calculateHash​(byte[] buffer)
      • calculateHash

        public byte[] calculateHash​(byte[] buffer,
                                    int offset,
                                    int length)