Documentation ¶
Overview ¶
提供一些实用函数
Index ¶
- func AESDecryptMsg(ciphertext []byte, aesKey []byte) (random, rawXMLMsg, appId []byte, err error)
- func AESEncryptMsg(random, rawXMLMsg []byte, appId string, aesKey []byte) (ciphertext []byte)
- func Bool(v bool) *bool
- func Float32(v float32) *float32
- func Float64(v float64) *float64
- func Int(v int) *int
- func Int32(v int32) *int32
- func Int64(v int64) *int64
- func MsgSign(token, timestamp, nonce, encryptedMsg string) (signature string)
- func Sign(token, timestamp, nonce string) (signature string)
- func String(v string) *string
- func ToLower(s string) string
- func Uint32(v uint32) *uint32
- func Uint64(v uint64) *uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecryptMsg ¶
ciphertext = AES_Encrypt[random(16B) + msg_len(4B) + rawXMLMsg + appId]
func AESEncryptMsg ¶
ciphertext = AES_Encrypt[random(16B) + msg_len(4B) + rawXMLMsg + appId]
func Bool ¶
Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
func Float32 ¶
Float32 is a helper routine that allocates a new float32 value to store v and returns a pointer to it.
func Float64 ¶
Float64 is a helper routine that allocates a new float64 value to store v and returns a pointer to it.
func Int ¶
Int is a helper routine that allocates a new int value to store v and returns a pointer to it.
func Int32 ¶
Int32 is a helper routine that allocates a new int32 value to store v and returns a pointer to it.
func Int64 ¶
Int64 is a helper routine that allocates a new int64 value to store v and returns a pointer to it.
func String ¶
String is a helper routine that allocates a new string value to store v and returns a pointer to it.
Types ¶
This section is empty.