raw| Constructor and Description |
|---|
JCEMacEngine(String algorithm,
byte[] key)
构造
|
JCEMacEngine(String algorithm,
Key key)
构造
|
JCEMacEngine(String algorithm,
Key key,
AlgorithmParameterSpec spec)
构造
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doFinal()
结束并生成摘要
|
String |
getAlgorithm()
获取当前算法
|
int |
getMacLength()
获取MAC算法块大小
|
void |
reset()
重置
|
void |
update(byte[] in)
加入需要被摘要的内容
|
void |
update(byte[] in,
int inOff,
int len)
加入需要被摘要的内容
|
getRawpublic JCEMacEngine(String algorithm, byte[] key)
algorithm - 算法key - 密钥public JCEMacEngine(String algorithm, Key key)
algorithm - 算法key - 密钥public JCEMacEngine(String algorithm, Key key, AlgorithmParameterSpec spec)
algorithm - 算法key - 密钥spec - AlgorithmParameterSpecpublic void update(byte[] in)
MacEnginepublic void update(byte[] in,
int inOff,
int len)
MacEnginepublic byte[] doFinal()
MacEnginepublic void reset()
MacEnginepublic int getMacLength()
MacEnginegetMacLength in interface MacEnginepublic String getAlgorithm()
MacEnginegetAlgorithm in interface MacEngineCopyright © 2025. All rights reserved.