keys

package
v0.0.0-...-bbb2733 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptionKeygen

func EncryptionKeygen() error

func GenerateServerKeysAndCert

func GenerateServerKeysAndCert() error

TODO: REFACTOR above functions to be more generic and robust, for now this will be fine

func GetKeyFromPath

func GetKeyFromPath(path string) ([]byte, error)

func LoadAndValidateKeys

func LoadAndValidateKeys(keyMap map[string]KeyDefinition) (map[string][]byte, error)

func SigningKeygen

func SigningKeygen() error

func ValidateEncryptionKeys

func ValidateEncryptionKeys(keyBytes []byte) error

func ValidateSigningKeys

func ValidateSigningKeys(keyBytes []byte) error

Types

type KeyDefinition

type KeyDefinition struct {
	Path string
	Type KeyType
}

type KeyType

type KeyType int
const (
	SigningKey    KeyType = iota
	EncryptionKey KeyType = iota
)

enum

Jump to

Keyboard shortcuts

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