fix comment

This commit is contained in:
Looly 2025-03-19 12:50:25 +08:00
parent cfb194a845
commit 099ea19c97

View File

@ -321,7 +321,7 @@ public class SM2 extends AbstractAsymmetricCrypto<SM2> {
/**
* 用私钥对信息生成数字签名
*
* @param dataHex 被签名的数据数据
* @param dataHex 被签名的数据
* @return 签名
*/
public String signHexFromHex(String dataHex) {
@ -331,7 +331,7 @@ public class SM2 extends AbstractAsymmetricCrypto<SM2> {
/**
* 用私钥对信息生成数字签名
*
* @param dataHex 被签名的数据数据
* @param dataHex 被签名的数据
* @return 签名
* @deprecated 歧义使用{@link #signHexFromHex(String)}
*/
@ -343,7 +343,7 @@ public class SM2 extends AbstractAsymmetricCrypto<SM2> {
/**
* 用私钥对信息生成数字签名
*
* @param dataHex 被签名的数据数据
* @param dataHex 被签名的数据
* @param idHex 可以为null若为null则默认withId为字节数组:"1234567812345678".getBytes()
* @return 签名
*/
@ -354,7 +354,7 @@ public class SM2 extends AbstractAsymmetricCrypto<SM2> {
/**
* 用私钥对信息生成数字签名
*
* @param dataHex 被签名的数据数据
* @param dataHex 被签名的数据
* @param idHex 可以为null若为null则默认withId为字节数组:"1234567812345678".getBytes()
* @return 签名
* @deprecated 歧义使用{@link #signHexFromHex(String, String)}
@ -368,7 +368,7 @@ public class SM2 extends AbstractAsymmetricCrypto<SM2> {
* 用私钥对信息生成数字签名签名格式为ASN1<br>
* * 在硬件签名中返回结果为R+S可以通过调用{@link cn.hutool.crypto.SmUtil#rsAsn1ToPlain(byte[])}方法转换之
*
* @param data 加密数据
* @param data 被签名的数据
* @return 签名
*/
public byte[] sign(byte[] data) {
@ -379,7 +379,7 @@ public class SM2 extends AbstractAsymmetricCrypto<SM2> {
* 用私钥对信息生成数字签名签名格式为ASN1<br>
* 在硬件签名中返回结果为R+S可以通过调用{@link cn.hutool.crypto.SmUtil#rsAsn1ToPlain(byte[])}方法转换之
*
* @param data 被签名的数据数据
* @param data 被签名的数据
* @param id 可以为null若为null则默认withId为字节数组:"1234567812345678".getBytes()
* @return 签名
*/
@ -404,7 +404,7 @@ public class SM2 extends AbstractAsymmetricCrypto<SM2> {
/**
* 用公钥检验数字签名的合法性
*
* @param dataHex 数据
* @param dataHex 数据
* @param signHex 签名
* @return 是否验证通过
* @since 5.2.0