Versions in this module Expand all Collapse all v0 v0.2.0 Oct 29, 2026 Changes in this version type Device + func (d *Device) PayloadOffset() int64 v0.1.0 Oct 29, 2026 Changes in this version + var DefaultLimits = Limits + var ErrLimit = errors.New("luks: the header asks for more than the limits allow") + func Detect(path string) (bool, error) + type Device struct + func Format(path string, passphrase []byte) (*Device, error) + func FormatOn(rw blockRW, passphrase []byte) (*Device, error) + func Open(path string, passphrase []byte) (*Device, error) + func OpenFrom(rw blockRW, passphrase []byte) (*Device, error) + func OpenFromLimited(rw blockRW, passphrase []byte, lim Limits) (*Device, error) + func OpenLimited(path string, passphrase []byte, lim Limits) (*Device, error) + func (d *Device) Close() error + func (d *Device) ReadAt(p []byte, off int64) (int, error) + func (d *Device) Size() int64 + func (d *Device) WriteAt(p []byte, off int64) (int, error) + type Limits struct + MaxArgon2MemoryKiB uint32 + MaxArgon2Time uint32 + MaxPBKDF2Iterations uint32