com.jcraft.jsch.HASH Interface Reference

Usually not to be used by applications. More...

Inheritance diagram for com.jcraft.jsch.HASH:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

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.


Member Function Documentation

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.

Returns:
the length of the produced hash, in bytes.
See also:
java.security.MessageDigest.getDigestLength MessageDigest.getDigestLength()

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().


The documentation for this interface was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1