com.sshtools.jce
Class MD5HMac

java.lang.Object
  extended bycom.sshtools.jce.MD5HMac
All Implemented Interfaces:
com.maverick.crypto.digests.HMac
Direct Known Subclasses:
MD5HMac96

public class MD5HMac
extends java.lang.Object
implements com.maverick.crypto.digests.HMac

An MD5 HMAC implementation which uses a JCE provider.

Author:
Lee David Painter

Constructor Summary
MD5HMac()
           
 
Method Summary
 int doFinal(byte[] out, int outOff)
           
 int getMacSize()
           
 int getOutputSize()
           
 void init(byte[] keydata)
           
 void reset()
           
 void update(byte in)
           
 void update(byte[] in, int inOff, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5HMac

public MD5HMac()
Method Detail

doFinal

public int doFinal(byte[] out,
                   int outOff)
Specified by:
doFinal in interface com.maverick.crypto.digests.HMac

getMacSize

public int getMacSize()
Specified by:
getMacSize in interface com.maverick.crypto.digests.HMac

getOutputSize

public int getOutputSize()
Specified by:
getOutputSize in interface com.maverick.crypto.digests.HMac

init

public void init(byte[] keydata)
          throws java.io.IOException
Specified by:
init in interface com.maverick.crypto.digests.HMac
Throws:
java.io.IOException

reset

public void reset()
Specified by:
reset in interface com.maverick.crypto.digests.HMac

update

public void update(byte in)
Specified by:
update in interface com.maverick.crypto.digests.HMac

update

public void update(byte[] in,
                   int inOff,
                   int len)
Specified by:
update in interface com.maverick.crypto.digests.HMac


Copyright © 2003 3SP LTD. All Rights Reserved.