Class SHA1
java.lang.Object
com.trilead.ssh2.crypto.digest.SHA1
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionprivate longDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private final int[]Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddigest(byte[] out) Deprecated.final voiddigest(byte[] out, int off) Deprecated.final intDeprecated.private final voidperform()Deprecated.private final voidputInt(byte[] b, int pos, int val) Deprecated.final voidreset()Deprecated.private static final StringtoHexString(byte[] b) Deprecated.final voidupdate(byte b) Deprecated.final voidupdate(byte[] b) Deprecated.final voidupdate(byte[] b, int off, int len) Deprecated.
-
Field Details
-
H0
private int H0Deprecated. -
H1
private int H1Deprecated. -
H2
private int H2Deprecated. -
H3
private int H3Deprecated. -
H4
private int H4Deprecated. -
w
private final int[] wDeprecated. -
currentPos
private int currentPosDeprecated. -
currentLen
private long currentLenDeprecated.
-
-
Constructor Details
-
SHA1
public SHA1()Deprecated.
-
-
Method Details
-
getDigestLength
-
reset
-
update
-
update
-
update
-
putInt
private final void putInt(byte[] b, int pos, int val) Deprecated. -
digest
-
digest
-
perform
private final void perform()Deprecated. -
toHexString
Deprecated.
-