Class SHA1Digest
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.crypto.GeneralDigest
-
- net.lax1dude.eaglercraft.v1_8.crypto.SHA1Digest
-
public class SHA1Digest extends GeneralDigest
implementation of SHA-1 as outlined in "Handbook of Applied Cryptography", pages 346 - 349. It is interesting to ponder why the, apart from the extra IV, the other difference here from MD5 is the "endienness" of the word processing!
-
-
Constructor Summary
Constructors Constructor Description SHA1Digest()Standard constructorSHA1Digest(SHA1Digest t)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoFinal(byte[] out, int outOff)java.lang.StringgetAlgorithmName()intgetDigestSize()protected voidprocessBlock()protected voidprocessLength(long bitLength)protected voidprocessWord(byte[] in, int inOff)voidreset()reset the chaining variables-
Methods inherited from class net.lax1dude.eaglercraft.v1_8.crypto.GeneralDigest
finish, update, update
-
-
-
-
Constructor Detail
-
SHA1Digest
public SHA1Digest()
Standard constructor
-
SHA1Digest
public SHA1Digest(SHA1Digest t)
Copy constructor. This will copy the state of the provided message digest.
-
-
Method Detail
-
getAlgorithmName
public java.lang.String getAlgorithmName()
-
getDigestSize
public int getDigestSize()
-
processWord
protected void processWord(byte[] in, int inOff)- Specified by:
processWordin classGeneralDigest
-
processLength
protected void processLength(long bitLength)
- Specified by:
processLengthin classGeneralDigest
-
doFinal
public int doFinal(byte[] out, int outOff)
-
reset
public void reset()
reset the chaining variables- Overrides:
resetin classGeneralDigest
-
processBlock
protected void processBlock()
- Specified by:
processBlockin classGeneralDigest
-
-