util

package
v0.0.0-...-4b57445 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeB64

func DecodeB64(message string) ([]byte, error)

DecodeB64 decodes a base64 string into bytes

func DecodeEd25519Priv

func DecodeEd25519Priv(path string) (ed25519.PrivateKey, error)

func DecodeX509CSR

func DecodeX509CSR(r io.Reader) (*x509.CertificateRequest, error)

func DecodeX509CSRFromPath

func DecodeX509CSRFromPath(path string) (*x509.CertificateRequest, error)

func DecodeX509Cert

func DecodeX509Cert(r io.Reader) (*x509.Certificate, error)

func DecodeX509CertFromPath

func DecodeX509CertFromPath(path string) (*x509.Certificate, error)

func EncodeB64

func EncodeB64(bytes []byte) string

EncodeB64 encodes the given bytes into a base64 string

func EncodeEd25519Priv

func EncodeEd25519Priv(buf *bytes.Buffer, key ed25519.PrivateKey) error

func EncodeX509Cert

func EncodeX509Cert(buf *bytes.Buffer, b []byte) error

Types

type NoPEMDataError

type NoPEMDataError struct{}

func (*NoPEMDataError) Error

func (e *NoPEMDataError) Error() string

type NotEd25519KeyError

type NotEd25519KeyError struct {
	// contains filtered or unexported fields
}

func (*NotEd25519KeyError) Error

func (e *NotEd25519KeyError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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