summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcryptfs_hw.c7
-rwxr-xr-xcryptfs_hw.h2
2 files changed, 3 insertions, 6 deletions
diff --git a/cryptfs_hw.c b/cryptfs_hw.c
index 3045bd0..109d406 100755
--- a/cryptfs_hw.c
+++ b/cryptfs_hw.c
@@ -221,12 +221,9 @@ int is_ice_enabled(void)
return storage_type;
}
-int wipe_hw_device_encryption_key(const char* enc_mode)
+int clear_hw_device_encryption_key()
{
- if (!enc_mode)
- return -1;
-
- if (is_hw_disk_encryption(enc_mode) && load_qseecom_library())
+ if (load_qseecom_library())
return qseecom_wipe_key(map_usage(QSEECOM_DISK_ENCRYPTION));
return 0;
diff --git a/cryptfs_hw.h b/cryptfs_hw.h
index 5d4881c..c840d02 100755
--- a/cryptfs_hw.h
+++ b/cryptfs_hw.h
@@ -35,7 +35,7 @@ extern "C" {
int set_hw_device_encryption_key(const char*, const char*);
int update_hw_device_encryption_key(const char*, const char*, const char*);
-int wipe_hw_device_encryption_key(const char*);
+int clear_hw_device_encryption_key();
unsigned int is_hw_disk_encryption(const char*);
int is_ice_enabled(void);