public class BaseMac extends Object implements Mac
Mac implementations based on the JCE provider.| Constructor and Description |
|---|
BaseMac(String algorithm,
int bsize,
int defbsize) |
| Modifier and Type | Method and Description |
|---|---|
void |
doFinal(byte[] buf,
int offset) |
String |
getAlgorithm() |
int |
getBlockSize() |
int |
getDefaultBlockSize() |
void |
init(byte[] key) |
String |
toString() |
void |
update(byte[] buf,
int offset,
int len) |
void |
updateUInt(long i) |
public BaseMac(String algorithm, int bsize, int defbsize)
public final String getAlgorithm()
getAlgorithm in interface MacInformationpublic final int getBlockSize()
getBlockSize in interface MacInformationpublic final int getDefaultBlockSize()
getDefaultBlockSize in interface MacInformationpublic void init(byte[] key)
throws Exception
public void updateUInt(long i)
updateUInt in interface Macpublic void doFinal(byte[] buf,
int offset)
throws Exception
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.