wgcrypto

package
v0.0.0-...-f9f7919 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenV1

func OpenV1(privateKey []byte, sealed Sealed) ([]byte, error)

Types

type Sealed

type Sealed struct {
	Kind []byte
	Key  []byte
	Data []byte
}

func ParseSealed

func ParseSealed(value string) (Sealed, error)

func SealV1

func SealV1(pubKey []byte, data []byte) (Sealed, error)

func (Sealed) Open

func (sealed Sealed) Open(privateKey []byte) ([]byte, error)

func (Sealed) String

func (s Sealed) String() string

Jump to

Keyboard shortcuts

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