public class SM3Util extends GMBaseUtil
public static byte[] prefixedHash(byte[] prefixed,
byte[] srcData)
srcData - 原文public static byte[] hash(byte[] srcData)
srcData - 原文public static boolean verify(byte[] srcData,
byte[] sm3Hash)
srcData - 原文sm3Hash - 摘要值public static byte[] hmac(byte[] key,
byte[] srcData)
key - key值,可以是任意长度的字节数组srcData - 原文Copyright © 2021. All rights reserved.