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