com.sshtools.jce
Class SHA1HMac
java.lang.Object
com.sshtools.jce.SHA1HMac
- All Implemented Interfaces:
- com.maverick.crypto.digests.HMac
- Direct Known Subclasses:
- SHA1HMac96
- public class SHA1HMac
- extends java.lang.Object
- implements com.maverick.crypto.digests.HMac
An SHA-1 HMAC implementation which uses a JCE provider.
- Author:
- Lee David Painter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHA1HMac
public SHA1HMac()
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.