keycontainer8

package
v1.76.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContainerDescriptor = "KEYCONTAINER8"

Functions

This section is empty.

Types

type GobED

type GobED struct {
	Encoder *gob.Encoder
	Decoder *gob.Decoder
	// contains filtered or unexported fields
}

func NewGobED

func NewGobED() (gobed *GobED)

type KeyContainer8

type KeyContainer8 struct {
	Type         string // public | private
	Id           string
	Alg          string // ES256 | EdDSA | etc
	Attrs        map[string]string
	KeyX509Bytes []byte // https://www.itu.int/rec/T-REC-X.509-201910-I/en
}

This is a replacement for PEM block, used to pass all necessary metainfo as a single yaml-friendly string.

func ParseBase64

func ParseBase64(gobed *GobED, str string) (kc *KeyContainer8, err error)

func (*KeyContainer8) SerializeBase64

func (kc *KeyContainer8) SerializeBase64(gobed *GobED) (str string)

Jump to

Keyboard shortcuts

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