Merge "Support Speck encryption."

This commit is contained in:
Treehugger Robot 2018-03-30 20:51:14 +00:00 committed by Gerrit Code Review
commit 14da8f607f
1 changed files with 5 additions and 1 deletions

View File

@ -116,17 +116,21 @@ static struct flag_list fs_mgr_flags[] = {
#define EM_ICE 2
#define EM_AES_256_CTS 3
#define EM_AES_256_HEH 4
#define EM_SPECK_128_256_XTS 5
#define EM_SPECK_128_256_CTS 6
static const struct flag_list file_contents_encryption_modes[] = {
{"aes-256-xts", EM_AES_256_XTS},
{"speck128/256-xts", EM_SPECK_128_256_XTS},
{"software", EM_AES_256_XTS}, /* alias for backwards compatibility */
{"ice", EM_ICE}, /* hardware-specific inline cryptographic engine */
{"ice", EM_ICE}, /* hardware-specific inline cryptographic engine */
{0, 0},
};
static const struct flag_list file_names_encryption_modes[] = {
{"aes-256-cts", EM_AES_256_CTS},
{"aes-256-heh", EM_AES_256_HEH},
{"speck128/256-cts", EM_SPECK_128_256_CTS},
{0, 0},
};