#linux #secure-storage #keyring #syscalls #system-interface #keyctl #keyutils

no-std linux-keyutils

Rust interface to the Linux key-management facility. Provides a safe interface around the raw system calls allowing user-space programs to perform key manipulation.

8 releases

0.2.4 Jan 15, 2024
0.2.3 Feb 25, 2023
0.2.2 Dec 19, 2022
0.2.1 Oct 10, 2022
0.1.2 Sep 26, 2022

#191 in Unix APIs

Download history 13723/week @ 2024-08-14 12665/week @ 2024-08-21 13727/week @ 2024-08-28 14982/week @ 2024-09-04 12311/week @ 2024-09-11 11924/week @ 2024-09-18 12735/week @ 2024-09-25 13565/week @ 2024-10-02 13476/week @ 2024-10-09 15740/week @ 2024-10-16 21553/week @ 2024-10-23 19184/week @ 2024-10-30 17855/week @ 2024-11-06 17404/week @ 2024-11-13 23328/week @ 2024-11-20 15601/week @ 2024-11-27

77,719 downloads per month
Used in 9 crates (2 directly)

Apache-2.0 OR MIT

57KB
879 lines

linux-keyutils

cargo-badge-lib docs-badge-lib license-badge rust-version-badge build codecov

Rust interface to the Linux key-management facility. Provides a safe interface around the raw system calls allowing user-space programs to perform key manipulation.

There is a good cloudflare blog discussing why it should be used.

Basic Usage

To use linux-keyutils, first add this to your Cargo.toml:

[dependencies]
linux-keyutils = "0.2"

For more information please view the full documentation. There is also a small example program in the examples directory.

Features

  • #![no_std] by default.
  • For std programs KeyError implements std::error::Error when the std feature of this crate enabled.
  • Small footprint, the library only relies on the libc and bitflags crates.

License

Licensed under either of the following at your discretion:

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~145KB