Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidKeyType = errors.New("invalid key type")
)
Functions ¶
This section is empty.
Types ¶
type CACertsKey ¶ added in v0.4.2
type CACertsKey struct { // DER-encoded certificates CACerts [][]byte `json:"caCerts"` }
func NewCACertsKey ¶ added in v0.4.2
func NewCACertsKey(certs []*x509.Certificate) *CACertsKey
type EphemeralKey ¶ added in v0.8.2
type EphemeralKey struct { Usage UsageType `json:"usage" validate:"oneof=encryption signing"` Secret []byte `json:"secret" validate:"len=32"` Labels map[string]string `json:"labels" validate:"dive,keys,printascii,endkeys,printascii"` }
func LoadEphemeralKey ¶ added in v0.8.2
func LoadEphemeralKey(r io.Reader) (*EphemeralKey, error)
func (*EphemeralKey) Validate ¶ added in v0.8.2
func (e *EphemeralKey) Validate() error
type Keyring ¶
type PKPKey ¶
type PKPKey struct {
PinnedKeys []*pkp.PublicKeyPin `json:"pinnedKeys"`
}
func NewPKPKey ¶
func NewPKPKey(pinnedKeys []*pkp.PublicKeyPin) *PKPKey
type SharedKeys ¶
type SharedKeys struct {}
func NewSharedKeys ¶
func NewSharedKeys(secret []byte) *SharedKeys
Click to show internal directories.
Click to hide internal directories.