Enum luks2::LuksKdf [−][src]
pub enum LuksKdf {
pbkdf2 {
salt: String,
hash: String,
iterations: u32,
},
argon2i {
salt: String,
time: u32,
memory: u32,
cpus: u32,
},
argon2id {
salt: String,
time: u32,
memory: u32,
cpus: u32,
},
}
Expand description
Stores information on the PBKDF type and parameters of a LuksKeyslot
.
Variants
Fields of pbkdf2
Fields of argon2i
salt: String
The salt for the PBKDF in base64 (binary data).
time: u32
The time cost (in fact the iterations).
memory: u32
The memory cost in kilobytes. If not available, the keyslot cannot be unlocked.
cpus: u32
The required nuber of threads (CPU cores number cost). If not available, unlocking will be slower.
Fields of argon2id
salt: String
The salt for the PBKDF in base64 (binary data).
time: u32
The time cost (in fact the iterations).
memory: u32
The memory cost in kilobytes. If not available, the keyslot cannot be unlocked.
cpus: u32
The required nuber of threads (CPU cores number cost). If not available, unlocking will be slower.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more