utilities

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrivatekeyParser

func PrivatekeyParser(prvkey []byte) (*rsa.PrivateKey, error)

func PubkeyParser

func PubkeyParser(pubkey []byte) (*rsa.PublicKey, error)

Types

type CipherInput

type CipherInput struct {
	Metadata map[string]string `yaml:"metadata"`
	Spec     EncryptedData     `yaml:"spec"`
}

func ParseCipherYaml

func ParseCipherYaml(sealedyamlpath string) *CipherInput

type DecodedInput

type DecodedInput struct {
	Privatekey *rsa.PrivateKey
	Publickey  *rsa.PublicKey
	Data       map[string][]byte
	Label      []byte
}

func SecretDecoder

func SecretDecoder(keyinput KeyInput, cipherinput CipherInput) (*DecodedInput, error)

type EncryptedData

type EncryptedData struct {
	CipherData map[string]string `yaml:"encryptedData"`
}

type KeyInput

type KeyInput struct {
	PubPrivkey map[string]string `yaml:"data"`
}

func ParsemasterkeyYaml

func ParsemasterkeyYaml(masterkeypath string) *KeyInput

Jump to

Keyboard shortcuts

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