keys

package
v0.0.0-...-ab26e33 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PEMTypePKXIPublicKey  = "PUBLIC KEY"
	PEMTypePKCS1PublicKey = "RSA PUBLIC KEY"

	PEMTypePKCS8PrivateKey = "PRIVATE KEY"
	PEMTypePKCS1PrivateKey = "RSA PRIVATE KEY"
)

Variables

View Source
var ErrInvalidDataFormat = errors.New("invalid data format")

Functions

func ParseRSAPrivateKeyDER

func ParseRSAPrivateKeyDER(der []byte) (key *rsa.PrivateKey, err error)

func ParseRSAPrivateKeyPEM

func ParseRSAPrivateKeyPEM(raw []byte) (key *rsa.PrivateKey, err error)

func ParseRSAPublicKeyDER

func ParseRSAPublicKeyDER(der []byte) (key *rsa.PublicKey, err error)

func ParseRSAPublicKeyPEM

func ParseRSAPublicKeyPEM(raw []byte) (key *rsa.PublicKey, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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