crypto

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0, MIT, MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BufferSize = 4096
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decryptor

type Decryptor interface {
	io.Reader
}

func NewDecryptor

func NewDecryptor(priv *rsa.PrivateKey, reader io.Reader) (Decryptor, error)

type EncryptWriter

type EncryptWriter struct {
	// contains filtered or unexported fields
}

func NewEncryptWriter

func NewEncryptWriter(pub *rsa.PublicKey, w io.Writer) (*EncryptWriter, error)

func (*EncryptWriter) Write

func (w *EncryptWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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