help

package
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmbSignRequest

func CmbSignRequest(
	reqStr,
	funCode,
	uid,
	userKey,
	AESKey string) (string, error)

CmbSignRequest

@Description:  招商银行 统一请求 todo  返回错误信息
@param reqStr 请求参数
@param funCode 请求代码
@param uid   用户ID
@param userKey 用户秘钥
@param AESKey 用户对称秘钥
@return string 结果返回
@Author  ahKevinXy
@Date 2023-04-10 13:41:37

func FormatPri added in v1.1.0

func FormatPri(priByte []byte) (*sm2.PrivateKey, error)

func GenYurref added in v1.1.2

func GenYurref() string

func GetCmbOpTime

func GetCmbOpTime(d string) (time.Time, error)

GetCmbOpTime

@Description:  获取交易
@param d
@return time.Time
@return error
@Author  ahKevinXy
@Date 2023-04-13 15:00:22

func GetCmbTransTime

func GetCmbTransTime(d string, t string) (time.Time, error)

GetCmbTransTime

@Description:   获取交易时间
@param d 日期
@param t 时间
@return time.Time
@return error
@Author  ahKevinXy
@Date 2023-04-13 15:00:11

func GetJson

func GetJson(reqAccount string) string

GetJson 根据ascii获取jsonStr 利用map的排序方式 实现 ascII排序

func GetReqidString added in v1.1.2

func GetReqidString() string

func GetSigtimString added in v1.1.2

func GetSigtimString() string

func SM3WithSM2Sign added in v1.1.0

func SM3WithSM2Sign(privateKey *sm2.PrivateKey, forSignStr string, uid []byte) (string, error)

SM3WithSM2Sign SM3WithSM2签名 Hex ToUpper

func Sm4Encrypt

func Sm4Encrypt(key, iv, plainText []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL