keystore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Package keystore provides an RFC3394/RFC5649 keystore implementation.

See http://godoc.org/github.com/paypal/go.crypto/keystore for documentation.

Documentation

Overview

Package keystore provides an RFC3394/RFC5649 keystore implementation.

Index

Constants

This section is empty.

Variables

View Source
var Base64Encoding = base64.StdEncoding

Base64Encoding to use when reading from or writing to a Keystore. Most clients will not need to change this.

Functions

This section is empty.

Types

type Keystore

type Keystore map[string]string

Keystore stores encrypted keys. The map is keyed by key name; value are encrypted, base64-encoded keys.

func (Keystore) Get

func (ks Keystore) Get(keyname string, kek []byte) ([]byte, error)

Get gets a key from the Keystore. kek is the key encrypting key.

func (Keystore) Set

func (ks Keystore) Set(keyname string, keyvalue []byte, kek []byte) error

Set sets a key in the Keystore. kek is the key encrypting key.

Jump to

Keyboard shortcuts

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