add comment

This commit is contained in:
Looly 2021-07-28 01:48:52 +08:00
parent 4ed2f41b1f
commit a46b977ecf
3 changed files with 30 additions and 8 deletions

View File

@ -24,10 +24,19 @@ import java.security.PrivateKey;
import java.security.PublicKey;
/**
* 国密SM2算法实现基于BC库<br>
* 国密SM2非对称算法实现基于BC库<br>
* SM2算法只支持公钥加密私钥解密<br>
* 参考https://blog.csdn.net/pridas/article/details/86118774
*
* <p>
* 国密算法包括
* <ol>
* <li>非对称加密和签名SM2</li>
* <li>摘要签名算法SM3</li>
* <li>对称加密SM4</li>
* </ol>
* </p>
*
* @author looly
* @since 4.3.2
*/
@ -275,7 +284,7 @@ public class SM2 extends AbstractAsymmetricCrypto<SM2> {
/**
* 用私钥对信息生成数字签名签名格式为ASN1<br>
* * 在硬件签名中返回结果为R+S可以通过调用{@link cn.hutool.crypto.SmUtil#rsAsn1ToPlain(byte[])}方法转换之
* * 在硬件签名中返回结果为R+S可以通过调用{@link cn.hutool.crypto.SmUtil#rsAsn1ToPlain(byte[])}方法转换之
*
* @param data 加密数据
* @return 签名

View File

@ -1,7 +1,16 @@
package cn.hutool.crypto.digest;
/**
* SM3杂凑算法
* 国密SM3杂凑摘要算法
*
* <p>
* 国密算法包括
* <ol>
* <li>非对称加密和签名SM2</li>
* <li>摘要签名算法SM3</li>
* <li>对称加密SM4</li>
* </ol>
* </p>
*
* @author looly
* @since 4.6.8

View File

@ -10,12 +10,16 @@ import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
/**
* SM4实现
* 国密对称堆成加密算法SM4实现
*
* 国密算法
* 1非对称加密和签名SM2
* 2摘要签名算法SM3
* 3对称加密SM4
* <p>
* 国密算法包括
* <ol>
* <li>非对称加密和签名SM2</li>
* <li>摘要签名算法SM3</li>
* <li>对称加密SM4</li>
* </ol>
* </p>
*
* @author Looly
* @since 4.6.8