stream

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

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AES128CFB = NewStream(&streamAES{"aes", 16, "cfb"})
View Source
var AES128CTR = NewStream(&streamAES{"aes", 16, "ctr"})
View Source
var AES192CFB = NewStream(&streamAES{"aes", 24, "cfb"})
View Source
var AES192CTR = NewStream(&streamAES{"aes", 24, "ctr"})
View Source
var AES256CFB = NewStream(&streamAES{"aes", 32, "cfb"})
View Source
var AES256CTR = NewStream(&streamAES{"aes", 32, "ctr"})
View Source
var Camellia128CFB = NewStream(&streamAES{"camellia", 16, "cfb"})
View Source
var Camellia192CFB = NewStream(&streamAES{"camellia", 24, "cfb"})
View Source
var Camellia256CFB = NewStream(&streamAES{"camellia", 32, "cfb"})
View Source
var Salsa20 = NewStream(&salsa20Cipher{})

Functions

func NewStream

func NewStream(cipher Cipher) core.TunnelProvider

Types

type Cipher

type Cipher interface {
	Name() string
	IVLength() int
	KeySize() int
	Cipher(key []byte) (cipher.Block, error)
	Decryptor(block cipher.Block, iv []byte) cipher.Stream
	Encryptor(block cipher.Block, iv []byte) cipher.Stream
}

Jump to

Keyboard shortcuts

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