crypto

package
v0.0.0-...-ba08d48 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(length int) string

func MarshalECSig

func MarshalECSig(r, s *big.Int) ([]byte, error)

func SignEC

func SignEC(priv *ecdsa.PrivateKey, msg []byte) ([]byte, error)

func UnmarshalECSig

func UnmarshalECSig(b []byte) (r, s *big.Int, err error)

func VerifyECSig

func VerifyECSig(pub *ecdsa.PublicKey, msg, sig []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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