Class SHA1Simple

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

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

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private int
     
    private int
     
    private int
     
    private int
     
    private final byte[]
     
  • Constructor Summary

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

    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 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)