rsa

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPublicKey

func GetPublicKey() (string, error)

GetPublicKey : Get the public key

func Init

func Init(config *config.Config) error

Init : Init the rsa setting, generate new public private files or load from existing files

func SignWithPrivateKey

func SignWithPrivateKey(src []byte, hash crypto.Hash) (signed []byte, e error)

SignWithPrivtaeKey : Sign the src data with private key

func VerifySignWithPublicKey

func VerifySignWithPublicKey(src, signed []byte, hash crypto.Hash) (e error)

VerifySignWithPublicKey : verify the signed data with public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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