org.apache.sshd.common.mac
Class BaseMac
java.lang.Object
org.apache.sshd.common.mac.BaseMac
- All Implemented Interfaces:
- Mac
- Direct Known Subclasses:
- HMACMD5, HMACMD596, HMACSHA1, HMACSHA196
public class BaseMac
- extends java.lang.Object
- implements Mac
Base class for Mac implementations based on the JCE provider.
- Author:
- Apache MINA SSHD Project
|
Constructor Summary |
BaseMac(java.lang.String algorithm,
int bsize,
int defbsize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseMac
public BaseMac(java.lang.String algorithm,
int bsize,
int defbsize)
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSize in interface Mac
init
public void init(byte[] key)
throws java.lang.Exception
- Specified by:
init in interface Mac
- Throws:
java.lang.Exception
updateUInt
public void updateUInt(long i)
- Specified by:
updateUInt in interface Mac
update
public void update(byte[] foo,
int s,
int l)
- Specified by:
update in interface Mac
doFinal
public void doFinal(byte[] buf,
int offset)
throws java.lang.Exception
- Specified by:
doFinal in interface Mac
- Throws:
java.lang.Exception
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.