sdk_LinkedMall-20260828093422/sdk_LinkedMall/crypto.go

17 lines
582 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package sdk_LinkedMall
// 本文件预留用于加密相关功能。
//
// 当前SDK使用阿里云 darabonba-openapi 客户端发起ROA签名调用
// 签名过程由底层客户端自动处理,业务层无需实现签名算法。
//
// 如需使用国密SM2/SM3/SM4或其他加密算法可在此文件中添加实现。
// 建议使用 github.com/tjfoc/gmsm 库进行国密算法实现。
//
// 示例:
// import "github.com/tjfoc/gmsm/sm3"
// func SM3Hash(data []byte) []byte {
// h := sm3.New()
// h.Write(data)
// return h.Sum(nil)
// }