Documentation ¶
Overview ¶
Package luks provides functions for working with the LUKS2 encrypted filesystem.
Index ¶
Constants ¶
View Source
const ( // Magic1 is the first LUKS2 magic. Magic1 = "LUKS\xba\xbe" // Magic2 is the second LUKS2 magic. Magic2 = "SKUL\xba\xbe" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SuperBlock ¶
type SuperBlock struct { Magic [6]byte Version uint16 HeaderSize uint64 SeqID uint64 Label [48]byte CSumAlg [32]byte Salt [64]byte UUID [40]byte Subsystem [48]byte SuperBlockOffset uint64 Checksum [64]byte // contains filtered or unexported fields }
SuperBlock represents luks encoded partition header.
func (*SuperBlock) Encrypted ¶
func (sb *SuperBlock) Encrypted() bool
Encrypted implements the SuperBlocker interface.
func (*SuperBlock) Offset ¶
func (sb *SuperBlock) Offset() int64
Offset implements the SuperBlocker interface.
func (*SuperBlock) Type ¶
func (sb *SuperBlock) Type() string
Type implements the SuperBlocker interface.
Click to show internal directories.
Click to hide internal directories.