luks

package
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

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) Is

func (sb *SuperBlock) Is() bool

Is 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL