Package com.trilead.ssh2.crypto.digest
Class HashForSSH2Types
- java.lang.Object
-
- com.trilead.ssh2.crypto.digest.HashForSSH2Types
-
public class HashForSSH2Types extends java.lang.ObjectHashForSSH2Types.- Version:
- $Id: HashForSSH2Types.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DigestmdDeprecated.the actual message digest is held in a private fieldprivate DigestmessageDigest
-
Constructor Summary
Constructors Constructor Description HashForSSH2Types(Digest md)HashForSSH2Types(java.lang.String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.security.MessageDigestcreateMessageDigest(java.lang.String algorithm)byte[]getDigest()voidgetDigest(byte[] out)voidgetDigest(byte[] out, int off)intgetDigestLength()voidreset()voidupdateBigInt(java.math.BigInteger b)voidupdateByte(byte b)voidupdateBytes(byte[] b)voidupdateByteString(byte[] b)voidupdateUINT32(int v)
-
-
-
Constructor Detail
-
HashForSSH2Types
public HashForSSH2Types(Digest md)
-
HashForSSH2Types
public HashForSSH2Types(java.lang.String type)
-
-
Method Detail
-
createMessageDigest
private static java.security.MessageDigest createMessageDigest(java.lang.String algorithm)
-
updateByte
public void updateByte(byte b)
-
updateBytes
public void updateBytes(byte[] b)
-
updateUINT32
public void updateUINT32(int v)
-
updateByteString
public void updateByteString(byte[] b)
-
updateBigInt
public void updateBigInt(java.math.BigInteger b)
-
reset
public void reset()
-
getDigestLength
public int getDigestLength()
-
getDigest
public byte[] getDigest()
-
getDigest
public void getDigest(byte[] out)
-
getDigest
public void getDigest(byte[] out, int off)
-
-