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)intgetMacLength()voidinit(byte[] keydata)booleanverify(long sequenceNo, byte[] data)
-
-
-
Method Detail
-
getMacLength
public int getMacLength()
- Specified by:
getMacLengthin interfaceSshHmac- Returns:
-
generate
public byte[] generate(long sequenceNo, byte[] data, int offset, int len)
-
init
public void init(byte[] keydata) throws AlgorithmInitializationException- Specified by:
initin interfaceSshHmac- Parameters:
keydata-- Throws:
AlgorithmInitializationException
-
-