localkey

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: Apache-2.0 Imports: 13 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) GetClearText

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

GetClearText localkey Client just returns the cipherText

func (*Client) GetEncryptedText

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

GetEncryptedText localkey Client just returns the clearText

func (*Client) InitBlock

func (l *Client) InitBlock(keyName string) error

InitBlock initializes the block cipher

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