TLSSigAPI

package module
v0.0.0-...-448d554 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: MIT Imports: 16 Imported by: 1

README

tls-sig-api-golang

only support P224/P256/P384/P521 curves

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorIdentifierNotMatch = errors.New("identifier not match")
	ErrorAppidNotMatch      = errors.New("appid not match")
	ErrorExpired            = errors.New("expired")
	ErrorInvalidSignature   = errors.New("invalid signature")
)
View Source
var (
	ErrorInvalidKeyType = errors.New("invalid key type")
)

Functions

func GenerateUsersig

func GenerateUsersig(privateKey string, appid int, identifier string) (string, error)

func GenerateUsersigWithExpire

func GenerateUsersigWithExpire(privateKey string, appid int, identifier string, expire int64) (string, error)

func GenerateUsersigWithUserbuf

func GenerateUsersigWithUserbuf(privateKey string, appid int, identifier string, expire int64, userbuf []byte) (string, error)

func VerifyUsersig

func VerifyUsersig(publicKey string, usersig string, appid int, identifier string) error

func VerifyUsersigWithUserbuf

func VerifyUsersigWithUserbuf(publicKey string, usersig string, appid int, identifier string) ([]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