localkey

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client implements the backend client interface

func NewLocalKey

func NewLocalKey(keyPath string) (*Client, error)

NewLocalKey initializes a new local key

func (*Client) Delete added in v0.1.0

func (l *Client) Delete(keyName, cipherText string) error

Delete No op nothing stored

func (*Client) GetClearText

func (l *Client) GetClearText(keyName, secretBlob string) (string, error)

GetClearText localkey Client

func (*Client) GetEncryptedText

func (l *Client) GetEncryptedText(keyName, clearText string) (string, error)

GetEncryptedText localkey Client just returns the clearText

func (*Client) Sign

func (l *Client) Sign(keyName, clearText string) (string, error)

Sign implements the interface

func (*Client) VerifySignature

func (l *Client) VerifySignature(keyName, signature, message string) (bool, error)

VerifySignature implements the interface.

Jump to

Keyboard shortcuts

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