common

package
v0.0.0-...-1a9e666 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

README

This package contains the common processes shared between the CLI and the Native Messaging Host RPC.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext io.Reader, plaintext io.Writer, key []byte) (*saltpack.MessageKeyInfo, error)

func Encrypt

func Encrypt(plaintext io.Reader, ciphertext io.Writer, encryptionKey []byte, publicKeys [][]byte, armor bool) error

Handle the encryption logic (seperately from the command logic)

Types

type ErrInvalidKeySize

type ErrInvalidKeySize error

Jump to

Keyboard shortcuts

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