Package com.trilead.ssh2.crypto.digest
Class SHA1
- java.lang.Object
-
- com.trilead.ssh2.crypto.digest.SHA1
-
- All Implemented Interfaces:
Digest
@Deprecated public final class SHA1 extends java.lang.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
currentLen
Deprecated.private int
currentPos
Deprecated.private int
H0
Deprecated.private int
H1
Deprecated.private int
H2
Deprecated.private int
H3
Deprecated.private int
H4
Deprecated.private int[]
w
Deprecated.
-
Constructor Summary
Constructors Constructor Description SHA1()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
digest(byte[] out)
Deprecated.void
digest(byte[] out, int off)
Deprecated.int
getDigestLength()
Deprecated.private void
perform()
Deprecated.private void
putInt(byte[] b, int pos, int val)
Deprecated.void
reset()
Deprecated.private static java.lang.String
toHexString(byte[] b)
Deprecated.void
update(byte b)
Deprecated.void
update(byte[] b)
Deprecated.void
update(byte[] b, int off, int len)
Deprecated.
-
-
-
Method Detail
-
getDigestLength
public final int getDigestLength()
Deprecated.- Specified by:
getDigestLength
in interfaceDigest
-
update
public final void update(byte[] b, int off, int len)
Deprecated.
-
putInt
private final void putInt(byte[] b, int pos, int val)
Deprecated.
-
digest
public final void digest(byte[] out, int off)
Deprecated.
-
perform
private final void perform()
Deprecated.
-
toHexString
private static final java.lang.String toHexString(byte[] b)
Deprecated.
-
-