Rust Rewrite Index

cryptsetup

disk encryption support - startup scripts

Rust efforts

Research record · 2026-11-29

Searched cryptsetup, libcryptsetup, LUKS1/LUKS2 Rust ports, readers and bindings. luks-core independently parses and decrypts a defined LUKS subset without libcryptsetup; cryptsetup-rs wraps the existing C library. The reader does not create or manage device-mapper mappings and is not a full cryptsetup replacement. No direct full cryptsetup port surfaced in the reviewed sources.

Original source check. The packaged source scan found zero files with the .rs suffix. This covers the Debian 13 snapshot and excludes common vendor directories. Independent repositories are outside this count.

Rust component

luks-core

Independent Rust LUKS reader and decryptor with a defined cipher and KDF subset; no device-mapper setup or full cryptsetup command coverage.

Evidence checked 2026-11-29

Project structure

Cryptsetup provides an interface for configuring encryption on block devices (such as /home or swap partitions), using the Linux kernel device mapper target dm-crypt. It features integrated Linux Unified Key Setup (LUKS) support.

Inside the source tree

  • tests/ · 181 indexed files
  • lib/ · 117 indexed files
  • docs/ · 70 indexed files
  • man/ · 37 indexed files
  • po/ · 25 indexed files

Source files by extension in this snapshot · C (98), C++ (9)

Selected components packaged from this source in Debian 13.

  • cryptsetup · disk encryption support - startup scripts
  • cryptsetup-bin · disk encryption support - command line tools
  • cryptsetup-ssh · disk encryption support - experimental SSH token handler
  • libcryptsetup12 · disk encryption support - shared library
  • cryptsetup-suspend · disk encryption support - suspend mode integration
  • cryptsetup-initramfs · disk encryption support - initramfs integration