添加文件: api_key.go
This commit is contained in:
parent
9c6cf762cc
commit
18462ef94a
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue