public class

BaseMAC

extends Object
implements MAC
java.lang.Object
   ↳ net.schmizz.sshj.transport.mac.BaseMAC
Known Direct Subclasses

Class Overview

Base class for MAC implementations based on the JCE provider.

Summary

Fields
private final String algorithm
private final int bsize
private final int defbsize
private Mac mac
private final byte[] tmp
Public Constructors
BaseMAC(String algorithm, int bsize, int defbsize)
Public Methods
void doFinal(byte[] buf, int offset)
byte[] doFinal(byte[] input)
byte[] doFinal()
int getBlockSize()
void init(byte[] key)
void update(long i)
void update(byte[] foo, int s, int l)
void update(byte[] foo)
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.schmizz.sshj.transport.mac.MAC

Fields

private final String algorithm

private final int bsize

private final int defbsize

private Mac mac

private final byte[] tmp

Public Constructors

public BaseMAC (String algorithm, int bsize, int defbsize)

Parameters
algorithm
bsize
defbsize

Public Methods

public void doFinal (byte[] buf, int offset)

Parameters
buf
offset

public byte[] doFinal (byte[] input)

Parameters
input

public byte[] doFinal ()

public int getBlockSize ()

public void init (byte[] key)

Parameters
key

public void update (long i)

Parameters
i

public void update (byte[] foo, int s, int l)

Parameters
foo
s
l

public void update (byte[] foo)

Parameters
foo