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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
digest()
int
getBlockSize()
void
init()
void
update(byte[] foo)
void
update(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 underlyingMessageDigest
object 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:
getBlockSize
in interfaceDigest
-
-