crypt

package
v1.0.0-next.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EOFMarker = "<EOF>"

Functions

func NewAESGCM

func NewAESGCM(key Key) (cipher.AEAD, error)

func NewSealer

func NewSealer(c cipher.AEAD, r io.Reader, blockSize int) io.Reader

func NewUnsealer

func NewUnsealer(c cipher.AEAD, w io.Writer, chunkSize int) io.Writer

Types

type Decrypter

type Decrypter interface {
	Decrypt(c cipher.AEAD, w io.Writer) (io.Writer, error)
}

type EncryptDecrypter

type EncryptDecrypter interface {
	Encrypter
	Decrypter
}

func NewCrypter

func NewCrypter(blockSize int) EncryptDecrypter

type Encrypter

type Encrypter interface {
	Encrypt(c cipher.AEAD, r io.Reader) (io.Reader, error)
}

type Key

type Key []byte

func NewKey

func NewKey(secret string) Key

Jump to

Keyboard shortcuts

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