添加 SM3 接口变种

This commit is contained in:
cheney
2022-07-21 09:45:17 +08:00
parent 899b0cc1ca
commit dbc5530853
2 changed files with 39 additions and 0 deletions
@@ -37,6 +37,14 @@ interface SydHashApi {
*/
byte[] SM3Hash(String publicKey, byte[] msg, int block, byte[] mac);
/**
* 计算SM3散列值
* @param publicKey 公钥的 DER 编码 (03420004 开头)
* @param userId 用户ID
* @param msg 原始数据,二进制的消息块
* @return
*/
byte[] SM3Hash(String publicKey, String userId, byte[] msg);
/**
* 输入对指定的原始数据和公钥,通过 SM3 算法计算数据的散列值。