crypto

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package crypto provides cryptographic functionality to SpliceD and CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	AESKey []byte
	Data   []byte
	Nonce  []byte
}

Metadata holds the join metadata along with its RSA-encrypted AES key

func (*Metadata) Encrypt

func (m *Metadata) Encrypt(pubKey []byte) error

Encrypt encrypts the metadata using an RSA-encrypted AES key.

Jump to

Keyboard shortcuts

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