#bindings #cryptsetup #libcryptsetup #encryption #token #cryptsetup-rs #luks2

sys libcryptsetup-sys

FFI bindings to the libcryptsetup library

5 unstable releases

0.3.0 Aug 28, 2022
0.3.0-beta1 Jun 7, 2020
0.2.0 Aug 28, 2018
0.1.2 Oct 9, 2019
0.1.0 Nov 28, 2016

#6 in #cryptsetup

Download history 36/week @ 2023-11-26 15/week @ 2023-12-03 5/week @ 2023-12-10 12/week @ 2023-12-17 16/week @ 2024-02-11 29/week @ 2024-02-18 30/week @ 2024-02-25 31/week @ 2024-03-03 13/week @ 2024-03-10

105 downloads per month
Used in 2 crates (via cryptsetup-rs)

LGPL-3.0

33KB
862 lines

pipeline status crates.io Status docs.rs build

cryptsetup-rs - Rust bindings to libcryptsetup on Linux

A safe binding to libcryptsetup that allows working with encrypted disks on Linux.

Requires libcryptetup >= 2.1.0 to compile.

Features:

  • High-level API for LUKS open/format/other operations
  • LUKS2 support including tokens handlers

Documentation for the bindings can be found on docs.rs.

The example luks_dump.rs shows how a command like cryptsetup luksDump can be implemented.

TODO

  • High-level API for non-LUKS1 disks (truecrypt, verity, bitlocker)
  • LUKS2 reencryption support

Other libraries

The libcryptsetup-rs library provides a more complete set of bindings with a different (non-builder like) API.

Contributing

cryptsetup-rs is the work of its contributors and is a free software project licensed under the LGPLv3 or later.

If you would like to contribute, please follow the C4 process.

Dependencies

~46KB