ch.ethz.ssh2.crypto.digest
Class HMAC

java.lang.Object
  extended by ch.ethz.ssh2.crypto.digest.HMAC
All Implemented Interfaces:
Digest

public final class HMAC
extends Object
implements Digest

HMAC.

Version:
2.50, 03/15/10
Author:
Christian Plattner

Constructor Summary
HMAC(Digest md, byte[] key, int size)
           
 
Method Summary
 void digest(byte[] out)
           
 void digest(byte[] out, int off)
           
 int getDigestLength()
           
 void reset()
           
 void update(byte b)
           
 void update(byte[] b)
           
 void update(byte[] b, int off, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMAC

public HMAC(Digest md,
            byte[] key,
            int size)
Method Detail

getDigestLength

public int getDigestLength()
Specified by:
getDigestLength in interface Digest

update

public void update(byte b)
Specified by:
update in interface Digest

update

public void update(byte[] b)
Specified by:
update in interface Digest

update

public void update(byte[] b,
                   int off,
                   int len)
Specified by:
update in interface Digest

reset

public void reset()
Specified by:
reset in interface Digest

digest

public void digest(byte[] out)
Specified by:
digest in interface Digest

digest

public void digest(byte[] out,
                   int off)
Specified by:
digest in interface Digest


Copyright © 2011. All Rights Reserved.