kring

package
v0.0.0-...-2081a44 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSecret

func NewSecret() (m *memguard.LockedBuffer, err error)

Types

type Ring

type Ring interface {
	NewSignaturePubkey() (privkey *memguard.LockedBuffer, err error)
	GetSignaturePubkey() (pubkey *memguard.LockedBuffer, err error)
	NewBoxSecret() (secret *memguard.LockedBuffer, err error)
	GetBoxSecret() (secret *memguard.LockedBuffer, err error)
	DeleteBoxSecret() error
	DeleteSignaturePubKey() error
	WriteRingPass(io.Writer) error
	GetSessionID() utils.MyULID
	Destroy() error
}

func GetDefRing

func GetDefRing(creds RingCreds) Ring

func GetRing

func GetRing(creds RingCreds) Ring

func NewDefRing

func NewDefRing() (Ring, error)

func NewRing

func NewRing() (r Ring, err error)

type RingCreds

type RingCreds struct {
	SessionID utils.MyULID
	Secret    *memguard.LockedBuffer
}

func NewCreds

func NewCreds() (creds RingCreds, err error)

Jump to

Keyboard shortcuts

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