/system/vold/ |
D | KeyBuffer.h | 51 using KeyBuffer = std::vector<char, ZeroingAllocator>; variable 54 KeyBuffer operator+(KeyBuffer&& lhs, const KeyBuffer& rhs); 55 KeyBuffer operator+(KeyBuffer&& lhs, const char* rhs);
|
D | KeyBuffer.cpp | 25 KeyBuffer operator+(KeyBuffer&& lhs, const KeyBuffer& rhs) { in operator +() 30 KeyBuffer operator+(KeyBuffer&& lhs, const char* rhs) { in operator +()
|
D | KeyStorage.h | 54 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key); 61 const KeyAuthentication& auth, const KeyBuffer& key); 64 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, KeyBuffer* key, 73 bool generateWrappedStorageKey(KeyBuffer* key); 75 bool exportWrappedStorageKey(const KeyBuffer& kmKey, KeyBuffer* key);
|
D | KeyUtil.h | 41 bool generateStorageKey(const KeyGeneration& gen, KeyBuffer* key); 67 const KeyBuffer& key, EncryptionPolicy* policy); 79 KeyBuffer* key, bool keepOld = true);
|
D | KeyUtil.cpp | 43 static bool randomKey(size_t size, KeyBuffer* key) { in randomKey() 44 *key = KeyBuffer(size); in randomKey() 53 bool generateStorageKey(const KeyGeneration& gen, KeyBuffer* key) { in generateStorageKey() 119 static bool fillKey(const KeyBuffer& key, fscrypt_key* fs_key) { in fillKey() 157 static bool installKeyLegacy(const KeyBuffer& key, const std::string& raw_ref) { in installKeyLegacy() 159 KeyBuffer fsKeyBuffer(sizeof(fscrypt_key)); in installKeyLegacy() 182 static bool installProvisioningKey(const KeyBuffer& key, const std::string& ref, in installProvisioningKey() 188 KeyBuffer buf(sizeof(fscrypt_provisioning_key_payload) + key.size(), 0); in installProvisioningKey() 261 const KeyBuffer& key, EncryptionPolicy* policy) { in installKey() 265 KeyBuffer arg_buf(sizeof(struct fscrypt_add_key_arg) + key.size(), 0); in installKey() [all …]
|
D | MetadataCrypt.cpp | 55 using android::vold::KeyBuffer; 141 KeyBuffer* key) { in read_key() 184 const KeyBuffer& key, const CryptoOptions& options, in create_crypto_blk_dev() 191 KeyBuffer module_key; in create_crypto_blk_dev() 201 KeyBuffer hex_key_buffer; in create_crypto_blk_dev() 313 KeyBuffer key; in fscrypt_mount_metadata_encrypted() 361 const KeyBuffer& key, std::string* out_crypto_blkdev) { in defaultkey_setup_ext_volume()
|
D | KeyStorage.cpp | 139 bool generateWrappedStorageKey(KeyBuffer* key) { in generateWrappedStorageKey() 147 *key = KeyBuffer(key_temp.size()); in generateWrappedStorageKey() 152 bool exportWrappedStorageKey(const KeyBuffer& kmKey, KeyBuffer* key) { in exportWrappedStorageKey() 158 *key = KeyBuffer(key_temp.size()); in exportWrappedStorageKey() 271 … const km::HardwareAuthToken& authToken, const KeyBuffer& message, in encryptWithKeymasterKey() 300 const std::string& ciphertext, KeyBuffer* message, in decryptWithKeymasterKey() 377 static bool encryptWithoutKeymaster(const std::string& preKey, const KeyBuffer& plaintext, in encryptWithoutKeymaster() 428 KeyBuffer* plaintext) { in decryptWithoutKeymaster() 448 *plaintext = KeyBuffer(ciphertext.size() - GCM_NONCE_BYTES - GCM_MAC_BYTES); in decryptWithoutKeymaster() 483 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key) { in storeKey() [all …]
|
D | MetadataCrypt.h | 34 const android::vold::KeyBuffer& key,
|
D | FsCrypt.cpp | 70 using android::vold::KeyBuffer; 192 KeyBuffer* ce_key) { in read_and_fixate_user_ce_key() 249 const KeyBuffer& key, EncryptionPolicy* policy) { in install_storage_key() 250 KeyBuffer ephemeral_wrapped_key; in install_storage_key() 291 KeyBuffer ce_key; in read_and_install_user_ce_key() 323 KeyBuffer de_key, ce_key; in create_and_install_user_keys() 397 KeyBuffer de_key; in load_all_de_keys() 430 KeyBuffer device_key; in fscrypt_initialize_systemwide_keys() 450 KeyBuffer per_boot_key; in fscrypt_initialize_systemwide_keys() 665 KeyBuffer key; in read_or_create_volkey() [all …]
|
D | cryptfs.h | 69 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
|
D | Utils.h | 100 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex);
|
D | Keymaster.h | 118 bool exportKey(const KeyBuffer& kmKey, std::string* key);
|
D | Android.bp | 119 "KeyBuffer.cpp",
|
D | Utils.cpp | 505 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { in StrToHex()
|
D | Keymaster.cpp | 141 bool Keymaster::exportKey(const KeyBuffer& kmKey, std::string* key) { in exportKey()
|
D | cryptfs.cpp | 78 using android::vold::KeyBuffer; 1863 int cryptfs_setup_ext_volume(const char* label, const char* real_blkdev, const KeyBuffer& key, in cryptfs_setup_ext_volume()
|
/system/vold/model/ |
D | VolumeEncryption.h | 26 bool generate_volume_key(android::vold::KeyBuffer* key); 29 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
|
D | PrivateVolume.h | 40 PrivateVolume(dev_t device, const KeyBuffer& keyRaw); 66 KeyBuffer mKeyRaw;
|
D | VolumeEncryption.cpp | 62 bool generate_volume_key(android::vold::KeyBuffer* key) { in generate_volume_key() 80 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev) { in setup_ext_volume()
|
D | PrivateVolume.cpp | 48 PrivateVolume::PrivateVolume(dev_t device, const KeyBuffer& keyRaw) in PrivateVolume()
|
D | Disk.cpp | 189 auto keyBuffer = KeyBuffer(keyRaw.begin(), keyRaw.end()); in createPrivateVolume() 478 KeyBuffer key; in partitionMixed()
|