public interface MacEngine
Modifier and Type | Method and Description |
---|---|
byte[] |
digest(InputStream data,
int bufferLength)
生成摘要
|
String |
getAlgorithm()
获取当前算法
|
int |
getMacLength()
获取MAC算法块大小
|
byte[] digest(InputStream data, int bufferLength)
data
- InputStream
数据流bufferLength
- 缓存长度,不足1使用 NioUtil.DEFAULT_BUFFER_SIZE
做为默认值int getMacLength()
String getAlgorithm()
Copyright © 2021. All rights reserved.