All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dahuatech.hutool.crypto.digest.mac.MacEngine Maven / Gradle / Ivy

There is a newer version: 1.0.13.7
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy