key

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerPrivate

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

func NewServerKey

func NewServerKey() ServerPrivate

func ParsePrivateKey

func ParsePrivateKey(key string) (*ServerPrivate, error)

func (ServerPrivate) Equal

func (k ServerPrivate) Equal(other ServerPrivate) bool

func (ServerPrivate) IsZero

func (k ServerPrivate) IsZero() bool

func (ServerPrivate) Open

func (k ServerPrivate) Open(ciphertext []byte) (cleartext []byte, ok bool)

func (ServerPrivate) Public

func (k ServerPrivate) Public() ServerPublic

func (ServerPrivate) Seal

func (k ServerPrivate) Seal(cleartext []byte) (ciphertext []byte)

func (ServerPrivate) String

func (k ServerPrivate) String() string

type ServerPublic

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

func ParsePublicKey

func ParsePublicKey(key string) (*ServerPublic, error)

func (ServerPublic) Equal

func (k ServerPublic) Equal(other ServerPublic) bool

func (ServerPublic) IsZero

func (k ServerPublic) IsZero() bool

func (ServerPublic) String

func (k ServerPublic) String() string

Jump to

Keyboard shortcuts

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