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

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

#196 in Unix APIs

Download history 7533/week @ 2024-01-03 8305/week @ 2024-01-10 30450/week @ 2024-01-17 50989/week @ 2024-01-24 35672/week @ 2024-01-31 9056/week @ 2024-02-07 9306/week @ 2024-02-14 10333/week @ 2024-02-21 13417/week @ 2024-02-28 13363/week @ 2024-03-06 10693/week @ 2024-03-13 13620/week @ 2024-03-20 14217/week @ 2024-03-27 14308/week @ 2024-04-03 14688/week @ 2024-04-10 11757/week @ 2024-04-17

57,171 downloads per month
Used in 6 crates (via keyring)

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

~160KB