rsaz

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustPEMToRSAPrivateKey

func MustPEMToRSAPrivateKey(buf []byte) *rsa.PrivateKey

MustPEMToRSAPrivateKey is like PEMToRSAPrivateKey but panics on error.

func MustPEMToRSAPublicKey

func MustPEMToRSAPublicKey(buf []byte) *rsa.PublicKey

MustPEMToRSAPublicKey is like PEMToRSAPublicKey but panics on error.

func PEMToRSAPrivateKey

func PEMToRSAPrivateKey(buf []byte) (*rsa.PrivateKey, error)

PEMToRSAPrivateKey decodes an RSA private key in PEM format.

func PEMToRSAPublicKey

func PEMToRSAPublicKey(buf []byte) (*rsa.PublicKey, error)

PEMToRSAPublicKey decodes an RSA public key in PEM format.

func RSAPrivateKeyToPEM

func RSAPrivateKeyToPEM(key *rsa.PrivateKey) []byte

RSAPrivateKeyToPEM encodes an RSA private key to PEM format.

func RSAPublicKeyToPEM

func RSAPublicKeyToPEM(key *rsa.PublicKey) []byte

RSAPublicKeyToPEM encodes a RSA public key to PEM format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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