multikey

package
v0.0.0-...-f80e208 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(enc string, privs []*rsa.PrivateKey) ([]byte, error)

Decrypt decrypts a secret with a provided set of keys.

func Encrypt

func Encrypt(data []byte, pubs []*rsa.PublicKey, require int) (string, error)

Encrypt encrypts a secret with a given set of public keys. The secret will be decryptable with `require` of the given keys.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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