summaryrefslogtreecommitdiffstats
path: root/crypto/lollipop/cryptfs.h
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-01-18 22:18:15 +0100
committerDees Troy <dees_troy@teamw.in>2016-01-19 23:13:17 +0100
commitba95ad18ac950af740ef0938d178e0c18f789419 (patch)
treeacaeec6c8773298c6336c4002acfbf20fe0f2fce /crypto/lollipop/cryptfs.h
parentgui: fix return value of NotifyKey (diff)
downloadandroid_bootable_recovery-ba95ad18ac950af740ef0938d178e0c18f789419.tar
android_bootable_recovery-ba95ad18ac950af740ef0938d178e0c18f789419.tar.gz
android_bootable_recovery-ba95ad18ac950af740ef0938d178e0c18f789419.tar.bz2
android_bootable_recovery-ba95ad18ac950af740ef0938d178e0c18f789419.tar.lz
android_bootable_recovery-ba95ad18ac950af740ef0938d178e0c18f789419.tar.xz
android_bootable_recovery-ba95ad18ac950af740ef0938d178e0c18f789419.tar.zst
android_bootable_recovery-ba95ad18ac950af740ef0938d178e0c18f789419.zip
Diffstat (limited to '')
-rw-r--r--crypto/lollipop/cryptfs.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/lollipop/cryptfs.h b/crypto/lollipop/cryptfs.h
index bc8b463ee..67ebbba95 100644
--- a/crypto/lollipop/cryptfs.h
+++ b/crypto/lollipop/cryptfs.h
@@ -52,7 +52,14 @@
correctly marked partial encryption */
#define CRYPT_DATA_CORRUPT 0x8 /* Set when encryption is fine, but the
underlying volume is corrupt */
-
+#ifdef CONFIG_HW_DISK_ENCRYPTION
+/* This flag is used to transition from L->M upgrade. L release passed
+ * a byte for every nible of user password while M release is passing
+ * ascii value of user password.
+ * Random flag value is chosen so that it does not conflict with other use cases
+ */
+#define CRYPT_ASCII_PASSWORD_UPDATED 0x1000
+#endif
/* Allowed values for type in the structure below */
#define CRYPT_TYPE_PASSWORD 0 /* master_key is encrypted with a password
* Must be zero to be compatible with pre-L