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()
SshHmac
getMacSize
in interface SshHmac
public int getMacLength()
SshHmac
getMacLength
in interface SshHmac
public SecurityLevel getSecurityLevel()
getSecurityLevel
in interface SecureComponent
public int getPriority()
getPriority
in interface SecureComponent
public void generate(long sequenceNo, byte[] data, int offset, int len, byte[] output, int start)
public void init(byte[] keydata) throws SshException
init
in interface SshHmac
SshException
public boolean verify(long sequenceNo, byte[] data, int start, int len, byte[] mac, int offset)
public String getAlgorithm()
getAlgorithm
in interface SshComponent
getAlgorithm
in interface SshHmac
getAlgorithm
in interface SecureComponent
Copyright © 2024. All rights reserved.