public class

BaseDigest

extends Object
implements Digest
java.lang.Object
   ↳ net.schmizz.sshj.transport.digest.BaseDigest
Known Direct Subclasses

Class Overview

Base class for Digest algorithms based on the JCE provider.

Summary

Fields
private final String algorithm
private final int bsize
private MessageDigest md
Public Constructors
BaseDigest(String algorithm, int bsize)
Create a new digest using the given algorithm and block size.
Public Methods
byte[] digest()
int getBlockSize()
void init()
void update(byte[] foo, int start, int len)
void update(byte[] foo)
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.schmizz.sshj.transport.digest.Digest

Fields

private final String algorithm

private final int bsize

private MessageDigest md

Public Constructors

public BaseDigest (String algorithm, int bsize)

Create a new digest using the given algorithm and block size. The initialization and creation of the underlying MessageDigest object will be done in the init() method.

Parameters
algorithm The JCE algorithm to use for this digest
bsize The block size of this digest

Public Methods

public byte[] digest ()

public int getBlockSize ()

public void init ()

public void update (byte[] foo, int start, int len)

Parameters
foo
start
len

public void update (byte[] foo)

Parameters
foo