diff options
author | AnilKumar Chimata <anilc@codeaurora.org> | 2018-06-14 16:43:17 +0530 |
---|---|---|
committer | AnilKumar Chimata <anilc@codeaurora.org> | 2018-06-20 22:11:26 +0530 |
commit | 7cc34529cd52b1522ed60497437851758312c066 (patch) | |
tree | 330568278f9a7bf38c2149843cc193d0d72cf765 /cryptfs_hw.h | |
parent | 36017216cce7d7fdf9c2b2eacc9835fd2d0f6d21 (diff) | |
download | android_vendor_qcom_opensource_cryptfs_hw-7cc34529cd52b1522ed60497437851758312c066.tar.gz android_vendor_qcom_opensource_cryptfs_hw-7cc34529cd52b1522ed60497437851758312c066.tar.bz2 android_vendor_qcom_opensource_cryptfs_hw-7cc34529cd52b1522ed60497437851758312c066.zip |
cryptfs: Allow vold to set encryption info
Vold needs to set partition and ICE specific
data before encryption starts.
Change-Id: Ie721f35d7f5cbb486d1d3895e42f992fe4bc51bf
Diffstat (limited to 'cryptfs_hw.h')
-rw-r--r-- | cryptfs_hw.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cryptfs_hw.h b/cryptfs_hw.h index e857c47..65321eb 100644 --- a/cryptfs_hw.h +++ b/cryptfs_hw.h @@ -33,12 +33,18 @@ extern "C" { #endif +/*This is equivalent of MAX_CRYPTO_TYPE_NAME_LEN*/ +#define CRYPTO_ALGO_LENGTH 64 +#define START_ENC 0x1 +#define START_ENCDEC 0x3 + int set_hw_device_encryption_key(const char*, const char*); int update_hw_device_encryption_key(const char*, const char*, const char*); int clear_hw_device_encryption_key(); unsigned int is_hw_disk_encryption(const char*); int is_ice_enabled(void); int should_use_keymaster(); +int set_ice_param(int flag); #ifdef __cplusplus } |