crypto

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnableToDecodePublicKey error = errors.New("failed to parse PEM block containing the public key")
	DecodedKeyForamIssue    error = errors.New("decoded key is not *rsa.PublicKey")
)
View Source
var (
	PrivateKeyPath string = ""
	PubKeyPath     string = ""
)

Functions

func GetPrivateKey

func GetPrivateKey(path string) (*rsa.PrivateKey, error)

func GetPublicKey

func GetPublicKey(path string) (*rsa.PublicKey, error)

func SignString

func SignString(algo crypto.Hash, input string) (result, hash string, err error)

func VerifySignature

func VerifySignature(algo crypto.Hash, hash, signb64 string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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