Package com.sshtools.j2ssh.util
Class Hash
java.lang.Object
com.sshtools.j2ssh.util.Hash
- Version:
- $Revision: 1.13 $
- Author:
- $author$
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Hash
Creates a new Hash object.- Parameters:
algorithm-- Throws:
NoSuchAlgorithmException
-
-
Method Details
-
putBigInteger
- Parameters:
bi-
-
putByte
public void putByte(byte b) - Parameters:
b-
-
putBytes
public void putBytes(byte[] data) - Parameters:
data-
-
putInt
public void putInt(int i) - Parameters:
i-
-
putString
- Parameters:
str-
-
reset
public void reset() -
simple
- Parameters:
data-algorithm-- Returns:
- Throws:
NoSuchAlgorithmException
-
doFinal
public byte[] doFinal()- Returns:
-