Documentation
¶
Overview ¶
Package rawchunked implements raw mode of c2sp.org/chunked-encryption.
It assumes 16-byte AEAD overhead, and AEAD nonces of at lest 12 bytes and at most 32 bytes.
Index ¶
Constants ¶
View Source
const ChunkOverhead = 16
View Source
const ChunkSize = 16 * 1024
Variables ¶
This section is empty.
Functions ¶
func EncryptedChunkCount ¶
func PlaintextSize ¶
Types ¶
type DecryptReader ¶
type DecryptReader struct {
// contains filtered or unexported fields
}
func NewDecryptReader ¶
type DecryptReaderAt ¶
type DecryptReaderAt struct {
// contains filtered or unexported fields
}
func NewDecryptReaderAt ¶
type EncryptReader ¶
type EncryptReader struct {
// contains filtered or unexported fields
}
func NewEncryptReader ¶
type EncryptWriter ¶
type EncryptWriter struct {
// contains filtered or unexported fields
}
func NewEncryptWriter ¶
func (*EncryptWriter) Close ¶
func (w *EncryptWriter) Close() error
Close flushes the last chunk. It does not close the underlying Writer.
Click to show internal directories.
Click to hide internal directories.