diskencryption

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cryptsetup

type Cryptsetup struct {
	// contains filtered or unexported fields
}

Cryptsetup manages the encrypted state mapper device.

func New

func New() *Cryptsetup

New creates a new Cryptsetup.

func (*Cryptsetup) Close

func (c *Cryptsetup) Close() error

Close closes the cryptdevice.

func (*Cryptsetup) Open

func (c *Cryptsetup) Open() error

Open opens the cryptdevice.

func (*Cryptsetup) UUID

func (c *Cryptsetup) UUID() (string, error)

UUID gets the device's UUID. Only works after calling Open().

func (*Cryptsetup) UpdatePassphrase

func (c *Cryptsetup) UpdatePassphrase(passphrase string) error

UpdatePassphrase switches the initial random passphrase of the mapped crypt device to a permanent passphrase. Only works after calling Open().

Jump to

Keyboard shortcuts

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