kms

package
v0.0.0-...-3301e3d Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKey

type PrivateKey struct {
	ID      string `json:"id"`
	Project string `json:"project"`
	PEM     string `json:"pem"`
}

PrivateKey represents a private key managed by padl

func NewPrivateKey

func NewPrivateKey(bits int, project string) (*PrivateKey, error)

NewPrivateKey is the constructor for the padl PrivateKey object

func (*PrivateKey) HideSecret

func (k *PrivateKey) HideSecret()

HideSecret simply changes the Key object such that the (secret) private key is no longer visible

func (*PrivateKey) PrivRSA

func (k *PrivateKey) PrivRSA() (*rsa.PrivateKey, error)

PrivRSA returns the materialized RSA private key corresponding to the padl-managed Key object

func (*PrivateKey) Pub

func (k *PrivateKey) Pub() (*PublicKey, error)

Pub returns the materialized padl-managed Public Key object corresponding to this privatekey

func (*PrivateKey) PubRSA

func (k *PrivateKey) PubRSA() (*rsa.PublicKey, error)

PubRSA returns the materialized RSA public key corresponding to the padl-managed Key object

type PublicKey

type PublicKey struct {
	ID  string `json:"id"`
	PEM string `json:"pem"`
}

PublicKey represents a public key managed by padl

func NewPublicKey

func NewPublicKey(pubPEM string) (*PublicKey, error)

NewPublicKey is the constructor for the padl PublicKey object

func (*PublicKey) PubRSA

func (k *PublicKey) PubRSA() (*rsa.PublicKey, error)

PubRSA returns the materialized RSA public key corresponding to the padl-managed Key object

Jump to

Keyboard shortcuts

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