public abstract class AbstractHmac extends Object implements SshHmac
SshHmac interface to provide support for
JCE based message authentication.| Modifier and Type | Field and Description |
|---|---|
protected String |
jceAlgorithm |
protected Mac |
mac |
protected int |
macLength |
protected int |
macSize |
| Constructor and Description |
|---|
AbstractHmac(String jceAlgorithm,
int macLength) |
AbstractHmac(String jceAlgorithm,
int macSize,
int outputLength) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doFinal() |
void |
generate(long sequenceNo,
byte[] data,
int offset,
int len,
byte[] output,
int start) |
abstract String |
getAlgorithm() |
int |
getMacLength() |
String |
getProvider() |
void |
init(byte[] keydata) |
void |
update(byte[] b) |
boolean |
verify(long sequenceNo,
byte[] data,
int start,
int len,
byte[] mac,
int offset) |
protected Mac mac
protected int macSize
protected int macLength
protected String jceAlgorithm
public AbstractHmac(String jceAlgorithm, int macLength)
public AbstractHmac(String jceAlgorithm, int macSize, int outputLength)
public void generate(long sequenceNo,
byte[] data,
int offset,
int len,
byte[] output,
int start)
public abstract String getAlgorithm()
getAlgorithm in interface SshHmacpublic String getProvider()
public int getMacLength()
getMacLength in interface SshHmacpublic void init(byte[] keydata)
throws SshException
init in interface SshHmacSshExceptionCopyright © 2016. All rights reserved.