rsakey

package
v0.0.0-...-fffdf24 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

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