wgcrypto

package
v0.0.0-...-3a8821d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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