certs

package
v0.0.0-...-628c14b Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCA

func GenerateCA(caPath string, pw []byte) error

Types

type CAStore

type CAStore struct {
	Pub  ed25519.PublicKey
	Priv ed25519.PrivateKey

	N uint64
}

func LoadCA

func LoadCA(caPath string, pw []byte) (CAStore, error)

func (CAStore) Marshal

func (ca CAStore) Marshal() ([]byte, error)

func (CAStore) Save

func (ca CAStore) Save(output string, pw []byte, salt []byte) error

func (CAStore) Sign

func (ca CAStore) Sign(outPath string, inPath string, certType uint32, principals []string, extensions []string, id string) error

type DecryptionError

type DecryptionError struct{}

func (*DecryptionError) Error

func (e *DecryptionError) Error() string

type KeyLengthError

type KeyLengthError struct{}

func (*KeyLengthError) Error

func (e *KeyLengthError) Error() string

type NonceLengthError

type NonceLengthError struct{}

func (*NonceLengthError) Error

func (e *NonceLengthError) Error() string

type SaltLengthError

type SaltLengthError struct{}

func (*SaltLengthError) Error

func (e *SaltLengthError) Error() string

Jump to

Keyboard shortcuts

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