keyfile

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Unlicense Imports: 12 Imported by: 0

Documentation

Overview

Package keyfile provides encrypted secret key storage.

Index

Constants

This section is empty.

Variables

View Source
var ErrDecrypt = errors.New("keyfile: cannot decrypt")

ErrDecrypt is returned if the keyfile could not be decrypted (wrong passphrase).

Functions

func Create

func Create(filename string, passphrase []byte, secretKey, signature [64]byte, comment []byte) error

Create keyfile (encrypted with passphrase) and store secretKey, signature, and optional comment it.

func Read

func Read(filename string, passphrase []byte) (*[64]byte, *[64]byte, []byte, error)

Read keyfile (encrypted with passphrase) and return secretKey, signature, and optional comment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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