pem

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPrivatePEMBytes

func FromPrivatePEMBytes(data []byte, scheme nike.Scheme) (nike.PrivateKey, error)

FromPrivatePEMBytes parses a PEM-encoded private key byte slice.

func FromPrivatePEMFile

func FromPrivatePEMFile(filename string, scheme nike.Scheme) (nike.PrivateKey, error)

FromPrivatePEMFile reads and parses a private key from a PEM-encoded file.

func FromPrivatePEMString

func FromPrivatePEMString(data string, scheme nike.Scheme) (nike.PrivateKey, error)

FromPrivatePEMString parses a PEM-encoded private key string.

func FromPublicPEMBytes

func FromPublicPEMBytes(data []byte, scheme nike.Scheme) (nike.PublicKey, error)

FromPublicPEMBytes parses a PEM-encoded public key byte slice.

func FromPublicPEMFile

func FromPublicPEMFile(filename string, scheme nike.Scheme) (nike.PublicKey, error)

FromPublicPEMFile reads and parses a public key from a PEM-encoded file.

func FromPublicPEMString

func FromPublicPEMString(data string, scheme nike.Scheme) (nike.PublicKey, error)

FromPublicPEMString parses a PEM-encoded public key string.

func PrivateKeyToFile

func PrivateKeyToFile(filename string, key nike.PrivateKey, scheme nike.Scheme) error

PrivateKeyToFile writes a private key to a file in PEM format.

func PublicKeyToFile

func PublicKeyToFile(filename string, key nike.PublicKey, scheme nike.Scheme) error

PublicKeyToFile writes a public key to a file in PEM format.

func ToPrivatePEMBytes

func ToPrivatePEMBytes(key nike.PrivateKey, scheme nike.Scheme) []byte

ToPrivatePEMBytes converts a private key to its PEM-encoded byte slice.

func ToPrivatePEMString

func ToPrivatePEMString(key nike.PrivateKey, scheme nike.Scheme) string

ToPrivatePEMString converts a private key to its PEM-encoded string representation.

func ToPublicPEMBytes

func ToPublicPEMBytes(key nike.PublicKey, scheme nike.Scheme) []byte

ToPublicPEMBytes converts a public key to its PEM-encoded byte slice.

func ToPublicPEMString

func ToPublicPEMString(key nike.PublicKey, scheme nike.Scheme) string

ToPublicPEMString converts a public key to its PEM-encoded string representation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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