Skip to content

Commit d1111c9

Browse files
committed
encrypted: add support for the enc32 format
1 parent f4bd0fd commit d1111c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/keytypes/encrypted.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ pub enum Format {
6060
/// Keys of this format must have a description of exactly 16 hexadecimal characters. The
6161
/// keylength must also be 64.
6262
Ecryptfs,
63+
/// Encrypted keys with a payload size of 32 bytes.
64+
///
65+
/// Intended for nvdimm security, but may be used for other 32-byte payload use cases in the
66+
/// future.
67+
Enc32,
6368
}
6469

6570
impl Format {
@@ -68,6 +73,7 @@ impl Format {
6873
match *self {
6974
Format::Default => "default",
7075
Format::Ecryptfs => "ecryptfs",
76+
Format::Enc32 => "enc32",
7177
}
7278
}
7379
}

0 commit comments

Comments
 (0)