Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Pre-defined errors
Functions ¶
func Cryptsetup ¶
Cryptsetup invokes cryptsetup to open crypt device. ek is the encrypted encryption key.
Types ¶
type Disk ¶
type Disk struct {
// contains filtered or unexported fields
}
Disk represents a physical disk to be encrypted.
func (Disk) CryptDevice ¶
CryptDevice returns the crypt device filename of this disk.
func (Disk) SectorSize ¶
SectorSize returns the physical block size of this disk.
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver setup crypt devices.
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
Metadata represents metadata block at the head of disk.
func NewMetadata ¶
NewMetadata initializes a new Metadata.
func ReadMetadata ¶
ReadMetadata read metadata from f. If metadata does not exist, this returns ErrNotFound.
func (*Metadata) DecryptKey ¶
DecryptKey decrypts encrypted key.
func (*Metadata) EncryptKey ¶
EncryptKey encrypts key.
Click to show internal directories.
Click to hide internal directories.