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: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPrivatePEMBytes

func FromPrivatePEMBytes(b []byte, scheme sign.Scheme) (sign.PrivateKey, error)

func FromPrivatePEMFile

func FromPrivatePEMFile(f string, scheme sign.Scheme) (sign.PrivateKey, error)

func FromPrivatePEMString

func FromPrivatePEMString(s string, scheme sign.Scheme) (sign.PrivateKey, error)

func FromPublicPEMBytes

func FromPublicPEMBytes(b []byte, scheme sign.Scheme) (sign.PublicKey, error)

func FromPublicPEMFile

func FromPublicPEMFile(f string, scheme sign.Scheme) (sign.PublicKey, error)

func FromPublicPEMString

func FromPublicPEMString(s string, scheme sign.Scheme) (sign.PublicKey, error)

func FromPublicPEMToBytes

func FromPublicPEMToBytes(b []byte, scheme sign.Scheme) ([]byte, error)

func PrivateKeyToFile

func PrivateKeyToFile(f string, key sign.PrivateKey) error

func PublicKeyToFile

func PublicKeyToFile(f string, key sign.PublicKey) error

func ToPrivatePEMBytes

func ToPrivatePEMBytes(key sign.PrivateKey) []byte

func ToPrivatePEMString

func ToPrivatePEMString(key sign.PrivateKey) string

func ToPublicPEMBytes

func ToPublicPEMBytes(key sign.PublicKey) []byte

func ToPublicPEMString

func ToPublicPEMString(key sign.PublicKey) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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