[−][src]Crate libcryptsetup_rs
This is a wrapper library for libcryptsetup. The intension is to provide as much safety as possible when crossing FFI boundaries to the crypsetup C library.
Macros
c_confirm_callback | Create a C-compatible callback to determine user confirmation which wraps safe Rust code |
c_logging_callback | Create a C-compatible logging callback which wraps safe Rust code |
c_progress_callback | Create a C-compatible progress callback for wiping a device which wraps safe Rust code |
c_str | Create a C-compatible static string with a null byte |
c_token_handler_dump | Create a C-compatible callback for compatible with |
c_token_handler_free | Create a C-compatible callback for free compatible with |
c_token_handler_open | Create a C-compatible open callback compatible with |
c_token_handler_validate | Create a C-compatible callback for validate compatible with |
Structs
ActiveDevice | Record containing data on the given active device |
CryptActivateFlags | Enum wrapping |
CryptActivation | Handle for activation options |
CryptBackup | Handle for backup operations on a device |
CryptContext | Cryptographic context for device |
CryptDeactivateFlags | Set of flags for crypt deactivate operations |
CryptDebug | Handle for backup operations on a device |
CryptDevice | Data type that is a handle for a crypt device |
CryptDeviceStatus | Handle for crypt device status operations |
CryptFormat | Handle for format operations on a device |
CryptInit | Initialization handle for devices |
CryptKeyfile | Handle for keyfile operations |
CryptKeyfileContents | Contents of a keyfile that have been read |
CryptKeyfileFlags | Set of flags for reading keyfiles |
CryptKeyslot | Handle for keyslot operations |
CryptLog | Handle for logging operations |
CryptLuks2Flags | Handle for LUKS2 persistent flag operations |
CryptLuks2Reencrypt | Handle for reencryption operations |
CryptLuks2Token | Handle for LUKS2 token operations |
CryptParamsIntegrity | Parameters for integrity checking |
CryptParamsIntegrityRef | A struct representing a reference with a lifetime to a |
CryptParamsLoopaes | Parameters for formatting a loop AES device |
CryptParamsLoopaesRef | C-compatible reference to a |
CryptParamsLuks1 | A struct representing LUKS1 specific parameters. |
CryptParamsLuks1Ref | A struct with a lifetime representing a reference to |
CryptParamsLuks2 | LUKS2-specific parameters |
CryptParamsLuks2Ref | A struct representing a reference with a lifetime to a |
CryptParamsPlain | Struct representing plain cryptsetup format parameters |
CryptParamsPlainRef | Represents a reference to a |
CryptParamsReencrypt | Parameters for reencryption operations |
CryptParamsReencryptRef | A struct representing a reference with a lifetime to a |
CryptParamsTcrypt | Parameters for tcrypt operations |
CryptParamsTcryptRef | Reference to a |
CryptParamsVerity | Parameters specific to Verity |
CryptParamsVerityRef | Reference to parameters specific to Verity |
CryptPbkdfFlags | Wrapper for a set of CryptPbkdfFlag |
CryptPbkdfType | Rust representation of |
CryptPbkdfTypeRef | A type wrapping a PBKDF type with pointers derived from Rust data types and lifetimes to ensure pointer validity |
CryptReencryptFlags | Wrapper for a set of CryptReencryptFlag |
CryptRequirementFlags | Set of |
CryptRuntime | Handle for runtime attribute options |
CryptSettings | Handle to operate on cryptsetup device settings |
CryptTcryptFlags | Set of flags for tcrypt format |
CryptVerityFlags | Set of flags for Verity format |
CryptVolumeKey | Handle for volume key operations |
CryptVolumeKeyFlags | Set of volume key flags |
CryptWipe | Handle for volume key operations |
KeyslotsSize | Size in bytes for the keyslots. |
SafeMemHandle | Handle to allocated memory from libcryptsetup |
Enums
Bool | Boolean specifying yes or no |
CryptActivateFlag | Enum wrapping |
CryptDeactivateFlag | Flags for crypt deactivate operations |
CryptDebugLevel | Debug log level |
CryptKdf | Rust representation of key generator enum |
CryptKeyfileFlag | Flags for reading keyfiles |
CryptLogLevel | Logging levels |
CryptPbkdfFlag | Enum wrapping |
CryptReencryptDirectionInfo | Reencryption direction flags |
CryptReencryptFlag | Enum for |
CryptReencryptInfo | Encryption mode flags |
CryptReencryptModeInfo | Encryption mode flags |
CryptRequirementFlag | Wrapper enum for |
CryptRngFlag | Rust representation of random number generator enum |
CryptStatusInfo | Status of a crypt device |
CryptTcryptFlag | tcrypt format flags |
CryptTokenInfo | Type representing the token status. This type wraps the |
CryptVerityFlag | Verity format flags |
CryptVolumeKeyFlag | Flags for tunable options when operating with volume keys |
CryptWipePattern | Pattern for disk wipe |
Either | The enum |
EncryptionFormat | Device formatting type options |
Interrupt | Boolean specifying yes or no |
KeyslotInfo | Value indicating the status of a keyslot |
KeyslotPriority | Value indicating the priority of a keyslot |
LibcryptErr | Error returned from any libcryptsetup-rs function |
LockState | State of memory lock |
LuksType | LUKS type (1 or 2) |
MetadataSize | Size allocated for metadata |
TokenInput | Token input for |
Functions
get_sector_size | Get size of encryption sectors in bytes |
status | Get status info from device name |
Type Definitions
Result | Result type to be used with |
c_int | Re-exports |
c_uint | Re-exports |
size_t | Re-exports |