public class NoneHmac extends Object implements SshHmac
| Constructor and Description |
|---|
NoneHmac() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doFinal() |
void |
generate(long sequenceNo,
byte[] data,
int offset,
int len,
byte[] output,
int start) |
String |
getAlgorithm() |
int |
getMacLength()
The length of the message digest output by this implementation (maybe lower than mac size);
|
int |
getMacSize()
The size of the message digest output by the hmac algorithm
|
int |
getPriority() |
SecurityLevel |
getSecurityLevel() |
void |
init(byte[] keydata) |
boolean |
isETM() |
void |
update(byte[] b) |
boolean |
verify(long sequenceNo,
byte[] data,
int start,
int len,
byte[] mac,
int offset) |
public int getMacSize()
SshHmacgetMacSize in interface SshHmacpublic int getMacLength()
SshHmacgetMacLength in interface SshHmacpublic SecurityLevel getSecurityLevel()
getSecurityLevel in interface SecureComponentpublic int getPriority()
getPriority in interface SecureComponentpublic void generate(long sequenceNo,
byte[] data,
int offset,
int len,
byte[] output,
int start)
public void init(byte[] keydata)
throws SshException
init in interface SshHmacSshExceptionpublic boolean verify(long sequenceNo,
byte[] data,
int start,
int len,
byte[] mac,
int offset)
public String getAlgorithm()
getAlgorithm in interface SshComponentgetAlgorithm in interface SshHmacgetAlgorithm in interface SecureComponentCopyright © 2025. All rights reserved.