wgkey

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoPrivateKey

type DiscoPrivateKey wgtypes.Key

func New

func New() (DiscoPrivateKey, error)

func (DiscoPrivateKey) Public

func (d DiscoPrivateKey) Public() DiscoPublicKey

func (DiscoPrivateKey) Shared

type DiscoPublicKey

type DiscoPublicKey wgtypes.Key

func Parse

func Parse(pubKey string) (DiscoPublicKey, error)

func (DiscoPublicKey) Marshal

func (d DiscoPublicKey) Marshal() string

func (DiscoPublicKey) String

func (d DiscoPublicKey) String() string

func (*DiscoPublicKey) Unmarshal

func (d *DiscoPublicKey) Unmarshal(encoded string) error

type DiscoSharedKey

type DiscoSharedKey wgtypes.Key

func (DiscoSharedKey) Decrypt

func (d DiscoSharedKey) Decrypt(ciphertext []byte) (cleartext []byte, ok bool)

func (DiscoSharedKey) Encrypt

func (d DiscoSharedKey) Encrypt(cleartext []byte) (ciphertext []byte, ok bool)

Jump to

Keyboard shortcuts

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