Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPem = errors.New("invalid pem (type should be RSA PUBLIC KEY, PUBLIC KEY, RSA PRIVATE KEY, or PRIVATE KEY)")
View Source
var ErrKeyAlreadyExists = errors.New("another key already exists with same name")
View Source
var ErrKeyNotFound = errors.New("couldn't find specified key")
View Source
var ErrMissingPem = errors.New("invalid pem (couldn't decode)")
View Source
var ErrNotRsaKey = errors.New("invalid pem (key is not RSA public key or private key)")
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
Name string
Public *rsa.PublicKey
Private *rsa.PrivateKey
}
func LoadKeyFromFile ¶
func NewPrivateKey ¶
func NewPrivateKey(name string, rsaPrivateKey *rsa.PrivateKey) *Key
func (*Key) PrivatePem ¶
type Keychain ¶
func NewKeychain ¶
func (*Keychain) ListForDecryption ¶ added in v0.2.0
func (*Keychain) ListForEncryption ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.