pkencryptedstream

package
v0.0.0-...-a5f7211 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Use public key crypto to encrypt a data stream in a way, that the encrypting party can not necessarily decrypt the same data (unless she possesses the private key as well).

DEPRECATED: this provides confidentiality, but is malleable (ciphertext is not authenticated)

use Age instead

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reader

func Reader(source io.Reader, privateKey *rsa.PrivateKey) (io.Reader, error)

func Writer

func Writer(destination io.Writer, pubKey *rsa.PublicKey) (io.WriteCloser, error)

Format:

<len of below envelope>
<encrypted AES key envelope: RSA-OAEP-SHA256>
<iv>
<ciphertext stream>

Types

This section is empty.

Jump to

Keyboard shortcuts

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