Usually not to be used by applications. More...
Public Member Functions | |
int | getBlockSize () |
returns the size of the hash which will be produced from input. | |
Package Functions | |
void | init () throws Exception |
initializes the algorithm for new input data. |
Usually not to be used by applications.
The interface for a (cryptographic) Hash algorithm.
This is a slimmed-down version of java.security.MessageDigest.
Several parts of the library will look up the implementation class to use in the JSch.setConfig configuration} and then instantiate it using the no-argument constructor. The used algorithm names are only "md5" and "sha-1", for now.
The library includes default implementations of MD5 and SHA-1 based on Java's MessageDigest.
Definition at line 49 of file HASH.java.
int com.jcraft.jsch.HASH.getBlockSize | ( | ) |
returns the size of the hash which will be produced from input.
This usually will be a constant function, like 16 for MD5 and 20 for SHA1.
Implemented in com.jcraft.jsch.jce.MD5, and com.jcraft.jsch.jce.SHA1.
Referenced by com.jcraft.jsch.IdentityFile.setPassphrase().
void com.jcraft.jsch.HASH.init | ( | ) | throws Exception [package] |
initializes the algorithm for new input data.
This will be called before the first call to update.
Implemented in com.jcraft.jsch.jce.MD5, and com.jcraft.jsch.jce.SHA1.
Referenced by com.jcraft.jsch.Util.getFingerPrint(), and com.jcraft.jsch.IdentityFile.IdentityFile().