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, } }