cn.hutool.crypto.digest.mac.SM4MacEngine Maven / Gradle / Ivy
package cn.hutool.crypto.digest.mac;
import org.bouncycastle.crypto.CipherParameters;
import org.bouncycastle.crypto.engines.SM4Engine;
/**
* SM4算法的MAC引擎实现
*
* @author looly
* @since 5.8.0
*/
public class SM4MacEngine extends CBCBlockCipherMacEngine {
private static final int MAC_SIZE = 128;
/**
* 构造
*
* @param params {@link CipherParameters}
*/
public SM4MacEngine(CipherParameters params) {
super(new SM4Engine(), MAC_SIZE, params);
}
}