From 7cc34529cd52b1522ed60497437851758312c066 Mon Sep 17 00:00:00 2001 From: AnilKumar Chimata Date: Thu, 14 Jun 2018 16:43:17 +0530 Subject: cryptfs: Allow vold to set encryption info Vold needs to set partition and ICE specific data before encryption starts. Change-Id: Ie721f35d7f5cbb486d1d3895e42f992fe4bc51bf --- cryptfs_hw.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cryptfs_hw.h') 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 } -- cgit v1.2.3