api

package
v0.0.0-...-296c083 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const PairKeyType = KeyType("pair")
View Source
const PrivateKeyType = KeyType("private")
View Source
const PublicKeyType = KeyType("public")

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm interface {
	HasKeySize() bool
	Name() string
}
var DSA Algorithm = &algorithm{hasKeySize: true, name: "DSA"}
var Ed25519 Algorithm = &algorithm{hasKeySize: false, name: "Ed25519"}
var RSA Algorithm = &algorithm{hasKeySize: true, name: "RSA"}

type KeyAccess

type KeyAccess interface {
	AllKeys() []KeyEntry
}

type KeyEntry

type KeyEntry interface {
	Locations() []string
	PublicKeyLocations() []string
	PrivateKeyLocations() []string
	KeyType() KeyType
	Size() int
	Algorithm() Algorithm
}

type KeyType

type KeyType string

type PrivateKeyEntry

type PrivateKeyEntry interface {
	KeyEntry
	IsPasswordProtected() bool
}

type PublicKeyEntry

type PublicKeyEntry interface {
	KeyEntry
	WithDigestContent(func([]byte) []byte) []byte
	UserID() string
}

Jump to

Keyboard shortcuts

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