diff --git a/api_key.go b/api_key.go new file mode 100644 index 0000000..80e6f8c --- /dev/null +++ b/api_key.go @@ -0,0 +1,15 @@ +package xyshanghai + +// APIKey 存储SM4密钥和SM3盐值 +type APIKey struct { + SM4Key []byte + SM3Salt []byte +} + +// NewAPIKey 创建APIKey实例 +func NewAPIKey(sm4Key, sm3Salt []byte) *APIKey { + return &APIKey{ + SM4Key: sm4Key, + SM3Salt: sm3Salt, + } +} \ No newline at end of file