Crate keyutils

Source
Expand description

Linux keyring bindings for Rust

This crate provides a high-level API for interacting with the Linux keys subsystem.

Modules§

keytypes
Keytypes

Structs§

Description
Structure representing the metadata about a key or keyring.
Key
Representation of a kernel key.
KeyManager
A manager for a key to respond to instantiate a key request by the kernel.
KeySupportInfo
Structure to store results from a query on optional feature support for a key.
Keyring
Representation of a kernel keyring.
Permission
Permission bits for keyring objects.
PublicKeyOptions
Options for output from public key functions (encryption, decryption, signing, and verifying).

Enums§

DefaultKeyring
An enumeration for the keyrings which may be set as the default.
KeyctlEncoding
Encodings supported by the kernel.
KeyctlHash
Hashes supported by the kernel.
SpecialKeyring
Special keyrings predefined for a process.
TargetKeyring
The destination keyring of an instantiation request.

Traits§

KeyDescription
A description for a key.
KeyPayload
A payload for a key.
KeyRestriction
A restriction for a key.
KeyType
A trait for representing a type of key in the Linux keyring subsystem.
RestrictableKeyType
A key which may be restricted into being added to a keyring.

Type Aliases§

Error
Reexport of Errno as Error.
KeyPermissions
Alias for the key_perm_t kernel type, representing a keyring’s (or key’s) permission bits.
KeyctlSupportFlags
They kernel type for representing support for optional features.
KeyringSerial
Alias for the key_serial_t kernel type, representing a keyring (or key).
Result
Simpler Result type with the error already set.
TimeoutSeconds