!454 修复国密加密SM3不能传入密钥的问题

Merge pull request !454 from 李国鹏/v5-dev
This commit is contained in:
Looly 2021-11-05 17:15:17 +00:00 committed by Gitee
commit 470168e11b

View File

@ -133,6 +133,16 @@ public class SmUtil {
return new SM3();
}
/**
* SM3加密可以传入盐<br>
*
* @param salt 加密盐
* @return {@link SM3}
*/
public static SM3 sm3(byte[] salt) {
return new SM3(salt);
}
/**
* SM3加密生成16进制SM3字符串<br>
*