keymgr

package
v0.0.0-...-16335c8 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(private string, public string) error

Init initialize global keymanager

func PrivateKey

func PrivateKey() (*rsa.PrivateKey, error)

PrivateKey returns private key

func PublicKey

func PublicKey() (*rsa.PublicKey, error)

PublicKey returns public key

Types

type RSAKeyManager

type RSAKeyManager struct {
	PrivateKey *rsa.PrivateKey
	PublicKey  *rsa.PublicKey
}

RSAKeyManager manages rsa Private Key and Public Key

Jump to

Keyboard shortcuts

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