Class BaseDigest
- java.lang.Object
-
- net.schmizz.sshj.transport.digest.BaseDigest
-
-
Constructor Summary
Constructors Constructor Description BaseDigest(java.lang.String algorithm, int bsize)Create a new digest using the given algorithm and block size.
-
Method Summary
Modifier and Type Method Description byte[]digest()intgetBlockSize()voidinit()voidupdate(byte[] foo)voidupdate(byte[] foo, int start, int len)
-
-
-
Constructor Detail
-
BaseDigest
public BaseDigest(java.lang.String algorithm, int bsize)Create a new digest using the given algorithm and block size. The initialization and creation of the underlyingMessageDigestobject will be done in theinit()method.- Parameters:
algorithm- the JCE algorithm to use for this digestbsize- the block size of this digest
-
-
Method Detail
-
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSizein interfaceDigest
-
-