Class SHA1

java.lang.Object
com.trilead.ssh2.crypto.digest.SHA1
All Implemented Interfaces:
Digest

@Deprecated public final class SHA1 extends Object implements Digest
Deprecated.
Use java.security.MessageDigest.getInstance("SHA1");
SHA-1 implementation based on FIPS PUB 180-1. Highly optimized.

(http://www.itl.nist.gov/fipspubs/fip180-1.htm)

Version:
$Id: SHA1.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private long
    Deprecated.
     
    private int
    Deprecated.
     
    private int
    Deprecated.
     
    private int
    Deprecated.
     
    private int
    Deprecated.
     
    private int
    Deprecated.
     
    private int
    Deprecated.
     
    private final int[]
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    digest(byte[] out)
    Deprecated.
     
    final void
    digest(byte[] out, int off)
    Deprecated.
     
    final int
    Deprecated.
     
    private final void
    Deprecated.
     
    private final void
    putInt(byte[] b, int pos, int val)
    Deprecated.
     
    final void
    Deprecated.
     
    private static final String
    toHexString(byte[] b)
    Deprecated.
     
    final void
    update(byte b)
    Deprecated.
     
    final void
    update(byte[] b)
    Deprecated.
     
    final void
    update(byte[] b, int off, int len)
    Deprecated.
     

    Methods inherited from class java.lang.Object

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

    • H0

      private int H0
      Deprecated.
    • H1

      private int H1
      Deprecated.
    • H2

      private int H2
      Deprecated.
    • H3

      private int H3
      Deprecated.
    • H4

      private int H4
      Deprecated.
    • w

      private final int[] w
      Deprecated.
    • currentPos

      private int currentPos
      Deprecated.
    • currentLen

      private long currentLen
      Deprecated.
  • Constructor Details

    • SHA1

      public SHA1()
      Deprecated.
  • Method Details

    • getDigestLength

      public final int getDigestLength()
      Deprecated.
      Specified by:
      getDigestLength in interface Digest
    • reset

      public final void reset()
      Deprecated.
      Specified by:
      reset in interface Digest
    • update

      public final void update(byte[] b)
      Deprecated.
      Specified by:
      update in interface Digest
    • update

      public final void update(byte[] b, int off, int len)
      Deprecated.
      Specified by:
      update in interface Digest
    • update

      public final void update(byte b)
      Deprecated.
      Specified by:
      update in interface Digest
    • putInt

      private final void putInt(byte[] b, int pos, int val)
      Deprecated.
    • digest

      public final void digest(byte[] out)
      Deprecated.
      Specified by:
      digest in interface Digest
    • digest

      public final void digest(byte[] out, int off)
      Deprecated.
      Specified by:
      digest in interface Digest
    • perform

      private final void perform()
      Deprecated.
    • toHexString

      private static final String toHexString(byte[] b)
      Deprecated.