Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptionReader ¶
type CryptionReader struct {
// contains filtered or unexported fields
}
CryptionReader is a general purpose reader that applies a stream cipher on top of a regular reader.
func NewAesDecryptReader ¶
func NewCryptionReader ¶
func NewCryptionReader(stream cipher.Stream, reader io.Reader) *CryptionReader
NewCryptionReader creates a new CryptionReader instance from given stream cipher and reader.
type CryptionWriter ¶
type CryptionWriter struct {
// contains filtered or unexported fields
}
Cryption writer is a general purpose of byte stream writer that applies a stream cipher on top of a regular writer.
func NewAesEncryptWriter ¶
func NewCryptionWriter ¶
func NewCryptionWriter(stream cipher.Stream, writer io.Writer) *CryptionWriter
NewCryptionWriter creates a new CryptionWriter from given stream cipher and writer.
func (CryptionWriter) Crypt ¶
func (writer CryptionWriter) Crypt(blocks []byte)
Crypt crypts the content of blocks without writing them into the underlying writer.
Click to show internal directories.
Click to hide internal directories.