5 unstable releases

0.5.0 Sep 14, 2021
0.4.1 Sep 14, 2021
0.4.0 Mar 4, 2021
0.3.1 Jan 13, 2021
0.3.0 Dec 29, 2020

#255 in Filesystem

MIT license

46KB
920 lines

luks2

Interact with (currently: read metadata and data from) LUKS2 partitions from Rust.

Build with RUSTFLAGS="-C target-feature=+aes" to use the AES processor instruction set (if available on your platform).


lib.rs:

This crate defines data structures to interact with a LUKS2 partition.

See the examples/ folder for how to use this with a real partition or an .iso file on Linux and Windows (all examples need to be modified or require creating some files before they work correctly).

You'll probably want to compile in release mode most of the time, or else the master key extraction (which happens everytime a LuksDevice is created) will take quite a long time.

Dependencies

~3–4MB
~88K SLoC

LAa