Documentation
¶
Overview ¶
Package clear provides a passthrough Device implementation for unencrypted block devices. It satisfies the same interface as the LUKS and APFS backends, allowing the fde dispatcher to treat plaintext devices uniformly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device is a passthrough block device that applies no encryption or decryption. ReadAt and WriteAt forward directly to the underlying device.
func Open ¶
Open opens the file at path as a passthrough block device. The file must already exist; it is opened for reading and writing.
func OpenFrom ¶
OpenFrom wraps rw as a passthrough Device. If rw is an *os.File its current size is recorded for Size(); otherwise Size returns 0.
Click to show internal directories.
Click to hide internal directories.
