rsa

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPrivateKey

func LoadPrivateKey(f string) (*rsa.PrivateKey, error)

LoadPrivateKey read input path and parse it as RSA private key

func LoadPublicKey

func LoadPublicKey(f string) (*rsa.PublicKey, error)

LoadPublicKey ready input path and parse it as RSA public key

func ReadPEMBlock

func ReadPEMBlock(inputPath string) (*pem.Block, error)

ReadPEMBlock read input path and decode as pem block

func WritePEMBlock

func WritePEMBlock(outputPath string, ktype string, metadata map[string]string, raw []byte) error

WritePEMBlock build pem block and write to ouput file

Types

This section is empty.

Jump to

Keyboard shortcuts

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