com.maverick.ssh.components
Interface SshHmac

All Superinterfaces:
SshComponent
All Known Implementing Classes:
AbstractHmac, HmacMD5, HmacMD596, HmacSha1, HmacSha196, HmacSha256, HmacSha512

public interface SshHmac
extends SshComponent

This interface should be implemented by all message authentication implementations.

Author:
Lee David Painter

Method Summary
 byte[] doFinal()
           
 void generate(long sequenceNo, byte[] data, int offset, int len, byte[] output, int start)
           
 int getMacLength()
           
 String getName()
           
 void init(byte[] keydata)
           
 void update(byte[] b)
           
 boolean verify(long sequenceNo, byte[] data, int start, int len, byte[] mac, int offset)
           
 

Method Detail

getMacLength

int getMacLength()

generate

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

init

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

verify

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

update

void update(byte[] b)

doFinal

byte[] doFinal()

getName

String getName()
Specified by:
getName in interface SshComponent


Copyright © 2012. All Rights Reserved.