rsakey

package
v0.0.0-...-b1cb840 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportPrivateKeyToPEM

func ExportPrivateKeyToPEM(prv *rsa.PrivateKey) []byte

ExportPrivateKeyToPEM exports a RSA private key to its PEM string format

func ExportPublicKeyToPEM

func ExportPublicKeyToPEM(pub *rsa.PublicKey) ([]byte, error)

ExportPublicKeyToPEM exports a RSA public key to its PEM string format

func ImportPrivateKeyFromPEM

func ImportPrivateKeyFromPEM(prvPem []byte) (*rsa.PrivateKey, error)

ImportPrivateKeyFromPEM imports a RSA prviate key from its PEM string format

func ImportPublicKeyFromPEM

func ImportPublicKeyFromPEM(pubPem []byte) (*rsa.PublicKey, error)

ImportPublicKeyFromPEM imports a RSA public key from its PEM string format

Types

This section is empty.

Jump to

Keyboard shortcuts

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