diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2018-10-17 15:39:28 +0200 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2019-03-20 21:33:48 +0100 |
commit | 98661c1a298cb01c93ae31973a42d152077beae6 (patch) | |
tree | 6d3b9e93bd1827017dea8eae4e89c923ce139ec2 /crypto/ext4crypt/Keymaster4.cpp | |
parent | gpt: Add -Wno-format-security (diff) | |
download | android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar.gz android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar.bz2 android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar.lz android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar.xz android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar.zst android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.zip |
Diffstat (limited to '')
-rw-r--r-- | crypto/ext4crypt/Keymaster4.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/ext4crypt/Keymaster4.cpp b/crypto/ext4crypt/Keymaster4.cpp index e25d0c45d..cebe1f1d5 100644 --- a/crypto/ext4crypt/Keymaster4.cpp +++ b/crypto/ext4crypt/Keymaster4.cpp @@ -218,6 +218,7 @@ bool Keymaster::isSecure() { using namespace ::android::vold; +/* int keymaster_compatibility_cryptfs_scrypt() { Keymaster dev; if (!dev) { @@ -226,6 +227,7 @@ int keymaster_compatibility_cryptfs_scrypt() { } return dev.isSecure(); } +*/ static bool write_string_to_buf(const std::string& towrite, uint8_t* buffer, uint32_t buffer_size, uint32_t* out_size) { @@ -253,6 +255,7 @@ static km::AuthorizationSet keyParams(uint32_t rsa_key_size, uint64_t rsa_expone .Authorization(km::TAG_MIN_SECONDS_BETWEEN_OPS, ratelimit); } +/* int keymaster_create_key_for_cryptfs_scrypt(uint32_t rsa_key_size, uint64_t rsa_exponent, uint32_t ratelimit, uint8_t* key_buffer, uint32_t key_buffer_size, uint32_t* key_out_size) { @@ -269,6 +272,7 @@ int keymaster_create_key_for_cryptfs_scrypt(uint32_t rsa_key_size, uint64_t rsa_ if (!write_string_to_buf(key, key_buffer, key_buffer_size, key_out_size)) return -1; return 0; } +*/ int keymaster_upgrade_key_for_cryptfs_scrypt(uint32_t rsa_key_size, uint64_t rsa_exponent, uint32_t ratelimit, const uint8_t* key_blob, |