Documentation ¶
Index ¶
- Constants
- Variables
- func WrapBlockReader(r io.Reader, key []byte) (io.Reader, error)
- func WrapBlockWriter(w io.WriteCloser, key []byte, nonceFn NonceFunc) (io.WriteCloser, error)
- func WrapLogReader(r tapeio.LogReader, key []byte) (tapeio.LogReader, error)
- func WrapLogWriter(w tapeio.LogWriter, key []byte, nonceFn NonceFunc) (tapeio.LogWriter, error)
- type BlockReader
- type BlockWriter
- type LogReader
- type LogWriter
- type NonceFunc
Constants ¶
View Source
const BlockSize = 4096
Variables ¶
View Source
var ErrInvalidKey = errors.New("invalid key")
Functions ¶
func WrapBlockWriter ¶
func WrapBlockWriter(w io.WriteCloser, key []byte, nonceFn NonceFunc) (io.WriteCloser, error)
Types ¶
type BlockReader ¶
func NewBlockReader ¶
func NewBlockReader[R io.Reader](r R, key []byte) (*BlockReader[R], error)
type BlockWriter ¶
func NewBlockWriter ¶
func (*BlockWriter[W]) Close ¶
func (w *BlockWriter[W]) Close() error
Click to show internal directories.
Click to hide internal directories.