keyutil

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchRsaKey

func FetchRsaKey(url string) (*rsa.PublicKey, error)

func LoadRsaKeyFile

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

func LoadRsaKeys

func LoadRsaKeys(keys []string) ([]*rsa.PublicKey, error)

func LoadRsaPrivateKeyFile

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

func LoadRsaPublicKey

func LoadRsaPublicKey(key string) (*rsa.PublicKey, error)

func ParseKeyType

func ParseKeyType(key string) rsaKeyType

parseKeyType determines if the provided path for the key is a file or a url

func ParsePEM

func ParsePEM(c []byte) (*rsa.PublicKey, error)

func ParsePrivateKey

func ParsePrivateKey(c []byte) (*rsa.PrivateKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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