pem

package
v0.0.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile(f string, key KeyMaterial) error

func FromPEMBytes

func FromPEMBytes(b []byte, key KeyMaterial) error

func FromPEMString

func FromPEMString(s string, key KeyMaterial) error

func ToFile

func ToFile(f string, key KeyMaterial) error

func ToPEMBytes

func ToPEMBytes(key KeyMaterial) []byte

func ToPEMString

func ToPEMString(key KeyMaterial) string

Types

type KeyMaterial

type KeyMaterial interface {
	FromBytes([]byte) error

	Bytes() []byte

	KeyType() string
}

KeyMaterial

Jump to

Keyboard shortcuts

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