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 AlgorithmNameProviderpublic int getBlockSize()
getBlockSize in interface MacInformationpublic int getDefaultBlockSize()
getDefaultBlockSize in interface MacInformationpublic boolean isEncryptThenMac()
isEncryptThenMac 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 © 2018–2021 The Apache Software Foundation. All rights reserved.