utils

package
v0.0.0-...-a47287f Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenHash

func GenHash(b []byte) []byte

func GenHashObj

func GenHashObj(obj interface{}) []byte

func GenSig

func GenSig(digest []byte, priv *rsa.PrivateKey) []byte

func GenSigObj

func GenSigObj(obj interface{}, priv *rsa.PrivateKey) []byte

func InitLog

func InitLog()

func Ser

func Ser(obj interface{}) []byte

func VerifyHash

func VerifyHash(digest []byte, b []byte) bool

func VerifySig

func VerifySig(digest []byte, sig []byte, pub *rsa.PublicKey) bool

func VerifySigObj

func VerifySigObj(obj interface{}, sig []byte, pub *rsa.PublicKey) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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