raw| 构造器和说明 |
|---|
JCEMacEngine(String algorithm,
byte[] key)
构造
|
JCEMacEngine(String algorithm,
Key key)
构造
|
JCEMacEngine(String algorithm,
Key key,
AlgorithmParameterSpec spec)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 int getMacLength()
MacEnginegetMacLength 在接口中 MacEnginepublic String getAlgorithm()
MacEnginegetAlgorithm 在接口中 MacEngineCopyright © 2024. All rights reserved.