Class BaseDigest
java.lang.Object
net.schmizz.sshj.transport.digest.BaseDigest
- All Implemented Interfaces:
Digest
Base class for Digest algorithms based on the JCE provider.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBaseDigest
(String algorithm, int bsize) Create a new digest using the given algorithm and block size. -
Method Summary
-
Field Details
-
algorithm
-
bsize
private final int bsize -
md
-
-
Constructor Details
-
BaseDigest
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 Details
-
digest
public byte[] digest() -
getBlockSize
public int getBlockSize()- Specified by:
getBlockSize
in interfaceDigest
-
init
public void init() -
update
public void update(byte[] foo) -
update
public void update(byte[] foo, int start, int len)
-