age

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory added in v0.3.0

func NewFactory(passphraseReader io.Reader, logger log.Logger) key.Factory

Factory is the key.Factory implementation for age supported keys. It supports: - RSA - Ed25519 - X25519.

Types

type PrivateKey

type PrivateKey struct {
	// contains filtered or unexported fields
}

PrivateKey is a private key based on age library.

func (PrivateKey) AgeIdentity

func (p PrivateKey) AgeIdentity() age.Identity

AgeIdentity returns age Identity.

func (PrivateKey) Data

func (p PrivateKey) Data() []byte

Data satisfies Key interface.

func (PrivateKey) IsPrivate

func (PrivateKey) IsPrivate()

IsPrivate satisifies PrivateKey interface.

type PublicKey

type PublicKey struct {
	// contains filtered or unexported fields
}

PublicKey is a public key based on age library.

func (PublicKey) AgeRecipient

func (p PublicKey) AgeRecipient() age.Recipient

AgeRecipient returns age Recipient.

func (PublicKey) Data

func (p PublicKey) Data() []byte

Data satisfies Key interface.

func (PublicKey) IsPublic

func (PublicKey) IsPublic()

IsPublic satisifies PublicKey interface.

Jump to

Keyboard shortcuts

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