/system/vold/ |
D | KeyBuffer.h | 37 using KeyBuffer = std::vector<char, ZeroingAllocator>; variable 40 KeyBuffer operator+(KeyBuffer&& lhs, const KeyBuffer& rhs); 41 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 | 56 const KeyAuthentication& auth, const KeyBuffer& key); 59 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, KeyBuffer* key); 67 bool generateWrappedStorageKey(KeyBuffer* key); 69 bool exportWrappedStorageKey(const KeyBuffer& ksKey, KeyBuffer* key);
|
D | KeyUtil.h | 39 bool generateStorageKey(const KeyGeneration& gen, KeyBuffer* key); 65 const KeyBuffer& key, android::fscrypt::EncryptionPolicy* policy); 79 KeyBuffer* key);
|
D | KeyUtil.cpp | 51 static bool randomKey(size_t size, KeyBuffer* key) { in randomKey() 52 *key = KeyBuffer(size); in randomKey() 61 bool generateStorageKey(const KeyGeneration& gen, KeyBuffer* key) { in generateStorageKey() 132 static bool fillKey(const KeyBuffer& key, fscrypt_key* fs_key) { in fillKey() 170 static bool installKeyLegacy(const KeyBuffer& key, const std::string& raw_ref) { in installKeyLegacy() 172 KeyBuffer fsKeyBuffer(sizeof(fscrypt_key)); in installKeyLegacy() 195 static bool installProvisioningKey(const KeyBuffer& key, const std::string& ref, in installProvisioningKey() 201 KeyBuffer buf(sizeof(fscrypt_provisioning_key_payload) + key.size(), 0); in installProvisioningKey() 274 const KeyBuffer& key, EncryptionPolicy* policy) { in installKey() 279 KeyBuffer arg_buf(sizeof(struct fscrypt_add_key_arg) + key.size(), 0); in installKey() [all …]
|
D | KeyStorage.cpp | 136 bool generateWrappedStorageKey(KeyBuffer* key) { in generateWrappedStorageKey() 143 *key = KeyBuffer(key_temp.size()); in generateWrappedStorageKey() 148 bool exportWrappedStorageKey(const KeyBuffer& ksKey, KeyBuffer* key) { in exportWrappedStorageKey() 154 *key = KeyBuffer(key_temp.size()); in exportWrappedStorageKey() 371 const km::AuthorizationSet& keyParams, const KeyBuffer& message, in encryptWithKeystoreKey() 398 const std::string& ciphertext, KeyBuffer* message) { in decryptWithKeystoreKey() 434 static bool encryptWithoutKeystore(const std::string& preKey, const KeyBuffer& plaintext, in encryptWithoutKeystore() 485 KeyBuffer* plaintext) { in decryptWithoutKeystore() 505 *plaintext = KeyBuffer(ciphertext.size() - GCM_NONCE_BYTES - GCM_MAC_BYTES); in decryptWithoutKeystore() 544 static bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key) { in storeKey() [all …]
|
D | MetadataCrypt.cpp | 53 using android::vold::KeyBuffer; 122 KeyBuffer* key) { in read_key() 157 const KeyBuffer& key, const CryptoOptions& options, in create_crypto_blk_dev() 164 KeyBuffer module_key; in create_crypto_blk_dev() 174 KeyBuffer hex_key_buffer; in create_crypto_blk_dev() 292 KeyBuffer key; in fscrypt_mount_metadata_encrypted() 376 const KeyBuffer& key, std::string* out_crypto_blkdev) { in defaultkey_setup_ext_volume()
|
D | cryptfs.cpp | 41 using android::vold::KeyBuffer; 80 static void convert_key_to_hex_ascii(const KeyBuffer& key, char* key_ascii) { in convert_key_to_hex_ascii() 103 int cryptfs_setup_ext_volume(const char* label, const char* real_blkdev, const KeyBuffer& key, in cryptfs_setup_ext_volume()
|
D | cryptfs.h | 26 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
|
D | FsCrypt.cpp | 72 using android::vold::KeyBuffer; 107 std::map<userid_t, KeyBuffer> s_new_ce_keys; 214 KeyBuffer* ce_key) { in read_and_fixate_user_ce_key() 279 const KeyBuffer& key, EncryptionPolicy* policy) { in install_storage_key() 284 KeyBuffer ephemeral_wrapped_key; in install_storage_key() 322 KeyBuffer ce_key; in read_and_install_user_ce_key() 377 KeyBuffer de_key; in create_de_key() 390 KeyBuffer ce_key; in create_ce_key() 448 KeyBuffer de_key; in load_all_de_keys() 484 KeyBuffer device_key; in fscrypt_initialize_systemwide_keys() [all …]
|
D | MetadataCrypt.h | 37 const android::vold::KeyBuffer& key,
|
D | Utils.h | 132 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex);
|
D | Keystore.h | 116 bool exportKey(const KeyBuffer& ksKey, std::string* key);
|
D | Android.bp | 121 "KeyBuffer.cpp",
|
D | Keystore.cpp | 153 bool Keystore::exportKey(const KeyBuffer& ksKey, std::string* key) { in exportKey()
|
D | Utils.cpp | 917 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { in StrToHex()
|
/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); 69 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 | 50 PrivateVolume::PrivateVolume(dev_t device, const KeyBuffer& keyRaw) in PrivateVolume()
|
D | Disk.cpp | 204 auto keyBuffer = KeyBuffer(keyRaw.begin(), keyRaw.end()); in createPrivateVolume() 508 KeyBuffer key; in partitionMixed()
|