Lines Matching refs:options

31     EncryptionOptions options;  in TestString()  local
34 EXPECT_TRUE(ParseOptionsForApiLevel(first_api_level, instring, &options)); in TestString()
35 EXPECT_TRUE(OptionsToStringForApiLevel(first_api_level, options, &options_string)); in TestString()
37 return options; in TestString()
42 auto options = TestString(first_api_level, instring, outstring);
62 EXPECT_EQ(1, options.version); in TEST()
63 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST()
64 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
65 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_4, options.flags); in TEST()
70 EXPECT_EQ(2, options.version); in TEST()
71 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST()
72 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
73 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_16, options.flags); in TEST()
81 EXPECT_EQ(1, options.version); in TEST()
82 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST()
83 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
84 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_4, options.flags); in TEST()
88 EXPECT_EQ(1, options.version); in TEST()
89 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST()
90 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
91 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_16, options.flags); in TEST()
95 EXPECT_EQ(2, options.version); in TEST()
96 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST()
97 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
98 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_16, options.flags); in TEST()
102 EXPECT_EQ(1, options.version); in TEST()
103 EXPECT_EQ(FSCRYPT_MODE_PRIVATE, options.contents_mode); in TEST()
104 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
105 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_4, options.flags); in TEST()
111 EXPECT_EQ(1, options.version); in TEST()
112 EXPECT_EQ(FSCRYPT_MODE_PRIVATE, options.contents_mode); in TEST()
113 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
114 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_4, options.flags); in TEST()
119 EXPECT_EQ(1, options.version); in TEST()
120 EXPECT_EQ(FSCRYPT_MODE_PRIVATE, options.contents_mode); in TEST()
121 EXPECT_EQ(FSCRYPT_MODE_AES_256_HEH, options.filenames_mode); in TEST()
122 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_16, options.flags); in TEST()
126 EXPECT_EQ(1, options.version); in TEST()
127 EXPECT_EQ(FSCRYPT_MODE_ADIANTUM, options.contents_mode); in TEST()
128 EXPECT_EQ(FSCRYPT_MODE_ADIANTUM, options.filenames_mode); in TEST()
129 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_16 | FSCRYPT_POLICY_FLAG_DIRECT_KEY, options.flags); in TEST()
133 EXPECT_EQ(2, options.version); in TEST()
134 EXPECT_EQ(FSCRYPT_MODE_ADIANTUM, options.contents_mode); in TEST()
135 EXPECT_EQ(FSCRYPT_MODE_ADIANTUM, options.filenames_mode); in TEST()
136 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_16 | FSCRYPT_POLICY_FLAG_DIRECT_KEY, options.flags); in TEST()
145 EXPECT_EQ(2, options.version); in TEST()
146 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST()
147 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
148 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_16 | FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64, options.flags); in TEST()
153 EXPECT_EQ(2, options.version); in TEST()
154 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST()
155 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
156 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_16 | FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64, options.flags); in TEST()
161 EXPECT_EQ(2, options.version); in TEST()
162 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST()
163 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST()
164 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_16 | FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32, options.flags); in TEST()
195 foo.options = foo_options; in TEST()
198 TEST_INEQUALITY(foo, options.version, 2); in TEST()
199 TEST_INEQUALITY(foo, options.contents_mode, -1); in TEST()
200 TEST_INEQUALITY(foo, options.filenames_mode, 3); in TEST()
201 TEST_INEQUALITY(foo, options.flags, 0); in TEST()
202 TEST_INEQUALITY(foo, options.use_hw_wrapped_key, false); in TEST()