Class HmacSha
java.lang.Object
com.sshtools.j2ssh.transport.hmac.HmacSha
- All Implemented Interfaces:
SshHmac
- Direct Known Subclasses:
HmacSha96
- Version:
- $Revision: 1.20 $
- Author:
- $author$
-
Constructor Details
-
HmacSha
public HmacSha()Creates a new HmacSha object.
-
-
Method Details
-
getMacLength
public int getMacLength()- Specified by:
getMacLength
in interfaceSshHmac
- Returns:
-
generate
public byte[] generate(long sequenceNo, byte[] data, int offset, int len) -
init
- Specified by:
init
in interfaceSshHmac
- Parameters:
keydata
-- Throws:
AlgorithmInitializationException
-
verify
public boolean verify(long sequenceNo, byte[] data)
-