Class HmacSha
- java.lang.Object
-
- com.sshtools.j2ssh.transport.hmac.HmacSha
-
-
Constructor Summary
Constructors Constructor Description HmacSha()
Creates a new HmacSha object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
generate(long sequenceNo, byte[] data, int offset, int len)
int
getMacLength()
void
init(byte[] keydata)
boolean
verify(long sequenceNo, byte[] data)
-
-
-
Method Detail
-
getMacLength
public int getMacLength()
- Specified by:
getMacLength
in interfaceSshHmac
- Returns:
-
generate
public byte[] generate(long sequenceNo, byte[] data, int offset, int len)
-
init
public void init(byte[] keydata) throws AlgorithmInitializationException
- Specified by:
init
in interfaceSshHmac
- Parameters:
keydata
-- Throws:
AlgorithmInitializationException
-
-