Versions in this module Expand all Collapse all v0 v0.4.0 Nov 11, 2026 Changes in this version type Cipher + const AESKuznyechik + const CamelliaSerpentKuznyechik + const Kuznyechik + const KuznyechikCamellia + const TwofishKuznyechik v0.3.0 Nov 11, 2026 Changes in this version type Cipher + const Camellia + const SerpentCamellia v0.2.0 Nov 10, 2026 Changes in this version type Cipher + const AESSerpent + const AESTwofishSerpent + const Serpent + const SerpentTwofish + const SerpentTwofishAES v0.1.0 Nov 10, 2026 Changes in this version + var ErrCorrupt = errors.New("veracrypt: corrupt volume") + var ErrLimit = errors.New("veracrypt: limit exceeded") + var ErrReadOnly = errors.New("veracrypt: read-only") + var ErrUnsupported = errors.New("veracrypt: unsupported volume") + var ErrWrongSecret = errors.New("veracrypt: no KDF and cipher open the header with this secret") + type Cipher string + const AES + const Twofish + const TwofishAES + type Device struct + func Open(path string, o Options) (*Device, error) + func OpenFrom(r ReadAtCloser, size int64, o Options) (*Device, error) + func (d *Device) Close() error + func (d *Device) Header() *Header + func (d *Device) ReadAt(p []byte, off int64) (int, error) + func (d *Device) Size() int64 + func (d *Device) WriteAt([]byte, int64) (int, error) + type Header struct + Cipher Cipher + Flags uint32 + HiddenSize uint64 + KDF string + MKOffset uint64 + MKSize uint64 + MinVersion uint16 + SectorSize uint32 + VeraCrypt bool + Version uint16 + VolumeSize uint64 + func (h *Header) System() bool + type KDF string + const Argon2id + const BLAKE2s + const RIPEMD160 + const SHA1 + const SHA256 + const SHA512 + type Limits struct + MaxArgon2MemKiB uint32 + MaxIterations int + MaxKeyDerivations int + MaxPIM int + type Options struct + Backup bool + Cipher Cipher + Hidden bool + KDF KDF + Keyfiles [][]byte + Legacy bool + Limits Limits + PIM int + Password []byte + TrueCryptOnly bool + type ReadAtCloser interface