Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCryptReader ¶
GetCryptReader returns a new io.Reader that reads and encrypts the specified filename
func GetCryptWriter ¶
func GetCryptWriter(key *memguard.LockedBuffer, dir, fname string) (w io.WriteCloser, err error)
GetCryptWriter returns a new io.WriteCloser that will decrypt data written to it. Plaintext will be saved under the specified directory with chosen filename.
This writer has 2 bytes already written to it in order to initialize the underlying AES instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.