com.sshtools.j2ssh.transport.hmac
Interface SshHmac

All Known Implementing Classes:
HmacMd5, HmacMd596, HmacSha, HmacSha96

public interface SshHmac

Version:
$Revision: 1.16 $
Author:
$author$

Method Summary
 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

int getMacLength()
Returns:

generate

byte[] generate(long sequenceNo,
                byte[] data,
                int offset,
                int len)
Parameters:
sequenceNo -
data -
offset -
len -
Returns:

init

void init(byte[] keydata)
          throws AlgorithmInitializationException
Parameters:
keydata -
Throws:
AlgorithmInitializationException

verify

boolean verify(long sequenceNo,
               byte[] data)
Parameters:
sequenceNo -
data -
Returns:


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.