com.maverick.ssh.components
Interface SshHmac

All Known Implementing Classes:
AbstractHmac, AbstractHmac

public interface SshHmac

This interface should be implemented by all message authentication implementations.

Author:
Lee David Painter

Method Summary
 void generate(long sequenceNo, byte[] data, int offset, int len, byte[] output, int start)
           
 java.lang.String getAlgorithm()
           
 int getMacLength()
           
 void init(byte[] keydata)
           
 boolean verify(long sequenceNo, byte[] data, int start, int len, byte[] mac, int offset)
           
 

Method Detail

getMacLength

public int getMacLength()

generate

public void generate(long sequenceNo,
                     byte[] data,
                     int offset,
                     int len,
                     byte[] output,
                     int start)

init

public void init(byte[] keydata)
          throws SshException
Throws:
SshException

verify

public boolean verify(long sequenceNo,
                      byte[] data,
                      int start,
                      int len,
                      byte[] mac,
                      int offset)

getAlgorithm

public java.lang.String getAlgorithm()


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.