com.dahuatech.hutool.crypto.digest.mac.MacEngine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-common Show documentation
Show all versions of java-sdk-common Show documentation
Dahua ICC Open API SDK for Java
package com.dahuatech.hutool.crypto.digest.mac;
import com.dahuatech.hutool.core.io.IoUtil;
import java.io.InputStream;
/**
* MAC(Message Authentication Code)算法引擎
*
* @author Looly
* @since 4.5.13
*/
public interface MacEngine {
/**
* 生成摘要
*
* @param data {@link InputStream} 数据流
* @param bufferLength 缓存长度,不足1使用 {@link IoUtil#DEFAULT_BUFFER_SIZE} 做为默认值
* @return 摘要bytes
*/
byte[] digest(InputStream data, int bufferLength);
}