mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
fix comment
This commit is contained in:
parent
cfb194a845
commit
099ea19c97
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user