io.polaris.crypto.symmetric.SM4 Maven / Gradle / Ivy
package io.polaris.crypto.symmetric;
import io.polaris.core.crypto.symmetric.Symmetric;
import io.polaris.core.crypto.symmetric.SymmetricAlgorithm;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
/**
* 国密对称加密算法SM4实现
*
*
* 国密算法包括:
*
* - 非对称加密和签名:SM2
* - 摘要签名算法:SM3
* - 对称加密:SM4
*
*
* @author Qt
* @since 1.8
*/
public class SM4 extends Symmetric {
public SM4(Key key) {
super(SymmetricAlgorithm.SM4, key);
}
public SM4() throws NoSuchAlgorithmException {
super(SymmetricAlgorithm.SM4);
}
}