Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
"Path to encryption key. All data will be encrypted using this key.")
.schema();
-pub const ENCRYPTION_SCHEMA: Schema = BooleanSchema::new(
- "Explicitly enable or disable encryption. \
- (Allows disabling encryption when a default key file is present.)")
- .schema();
-
const CHUNK_SIZE_SCHEMA: Schema = IntegerSchema::new(
"Chunk size in KB. Must be a power of 2.")
.minimum(64)
schema: KEYFILE_SCHEMA,
optional: true,
},
- encryption: {
- schema: ENCRYPTION_SCHEMA,
+ "crypt-mode": {
+ type: CryptMode,
optional: true,
},
"skip-lost-and-found": {
schema: KEYFILE_SCHEMA,
optional: true,
},
- encryption: {
- schema: ENCRYPTION_SCHEMA,
+ "crypt-mode": {
+ type: CryptMode,
optional: true,
},
}
schema: KEYFILE_SCHEMA,
optional: true,
},
- encryption: {
- schema: ENCRYPTION_SCHEMA,
+ "crypt-mode": {
+ type: CryptMode,
optional: true,
},
}