Class SHA1Simple

java.lang.Object
com.biglybt.core.util.SHA1Simple

public final class SHA1Simple extends Object
SHA-1 message digest class.
  • Field Details

    • 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 Details

    • SHA1Simple

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

    • transform

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

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

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