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) |
void |
doFinal(byte[] buf,
int offset) |
String |
getAlgorithm() |
int |
getBlockSize() |
int |
getDefaultBlockSize() |
void |
init(byte[] key) |
String |
toString() |
void |
update(byte[] buf) |
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 MacInformation
public final int getBlockSize()
getBlockSize
in interface MacInformation
public final int getDefaultBlockSize()
getDefaultBlockSize
in interface MacInformation
public void init(byte[] key) throws Exception
public void updateUInt(long i)
updateUInt
in interface Mac
public void doFinal(byte[] buf) throws Exception
public void doFinal(byte[] buf, int offset) throws Exception
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.