/aosp12/system/vold/ |
H A 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);
|
H A D | KeyStorage.h | 48 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key); 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& kmKey, KeyBuffer* key);
|
H A D | KeyBuffer.cpp | 25 KeyBuffer operator+(KeyBuffer&& lhs, const KeyBuffer& rhs) { in operator +() 30 KeyBuffer operator+(KeyBuffer&& lhs, const char* rhs) { in operator +()
|
H A 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() 121 static bool fillKey(const KeyBuffer& key, fscrypt_key* fs_key) { in fillKey() 159 static bool installKeyLegacy(const KeyBuffer& key, const std::string& raw_ref) { in installKeyLegacy() 161 KeyBuffer fsKeyBuffer(sizeof(fscrypt_key)); in installKeyLegacy() 184 static bool installProvisioningKey(const KeyBuffer& key, const std::string& ref, in installProvisioningKey() 190 KeyBuffer buf(sizeof(fscrypt_provisioning_key_payload) + key.size(), 0); in installProvisioningKey() 263 const KeyBuffer& key, EncryptionPolicy* policy) { in installKey() 267 KeyBuffer arg_buf(sizeof(struct fscrypt_add_key_arg) + key.size(), 0); in installKey() [all …]
|
H A D | KeyUtil.h | 41 bool generateStorageKey(const KeyGeneration& gen, KeyBuffer* key); 67 const KeyBuffer& key, EncryptionPolicy* policy); 81 KeyBuffer* key);
|
H A D | MetadataCrypt.cpp | 52 using android::vold::KeyBuffer; 106 KeyBuffer* key) { in read_key() 139 const KeyBuffer& key, const CryptoOptions& options, in create_crypto_blk_dev() 146 KeyBuffer module_key; in create_crypto_blk_dev() 156 KeyBuffer hex_key_buffer; in create_crypto_blk_dev() 258 KeyBuffer key; in fscrypt_mount_metadata_encrypted() 308 const KeyBuffer& key, std::string* out_crypto_blkdev) { in defaultkey_setup_ext_volume()
|
H A D | KeyStorage.cpp | 153 bool generateWrappedStorageKey(KeyBuffer* key) { in generateWrappedStorageKey() 160 *key = KeyBuffer(key_temp.size()); in generateWrappedStorageKey() 165 bool exportWrappedStorageKey(const KeyBuffer& kmKey, KeyBuffer* key) { in exportWrappedStorageKey() 171 *key = KeyBuffer(key_temp.size()); in exportWrappedStorageKey() 380 const KeyBuffer& message, std::string* ciphertext) { in encryptWithKeymasterKey() 406 const std::string& ciphertext, KeyBuffer* message) { in decryptWithKeymasterKey() 470 static bool encryptWithoutKeymaster(const std::string& preKey, const KeyBuffer& plaintext, in encryptWithoutKeymaster() 521 KeyBuffer* plaintext) { in decryptWithoutKeymaster() 541 *plaintext = KeyBuffer(ciphertext.size() - GCM_NONCE_BYTES - GCM_MAC_BYTES); in decryptWithoutKeymaster() 602 const KeyAuthentication& auth, const KeyBuffer& key) { in storeKeyAtomically() [all …]
|
H A D | FsCrypt.cpp | 73 using android::vold::KeyBuffer; 199 KeyBuffer* ce_key) { in read_and_fixate_user_ce_key() 256 const KeyBuffer& key, EncryptionPolicy* policy) { in install_storage_key() 257 KeyBuffer ephemeral_wrapped_key; in install_storage_key() 297 KeyBuffer ce_key; in read_and_install_user_ce_key() 329 KeyBuffer de_key, ce_key; in create_and_install_user_keys() 404 KeyBuffer de_key; in load_all_de_keys() 437 KeyBuffer device_key; in fscrypt_initialize_systemwide_keys() 457 KeyBuffer per_boot_key; in fscrypt_initialize_systemwide_keys() 664 KeyBuffer key; in read_or_create_volkey() [all …]
|
H A D | MetadataCrypt.h | 35 const android::vold::KeyBuffer& key,
|
H A D | cryptfs.h | 69 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
|
H A D | Utils.h | 128 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex);
|
H A D | Keymaster.h | 117 bool exportKey(const KeyBuffer& kmKey, std::string* key);
|
H A D | Android.bp | 123 "KeyBuffer.cpp",
|
H A D | Keymaster.cpp | 153 bool Keymaster::exportKey(const KeyBuffer& kmKey, std::string* key) { in exportKey()
|
H A D | Utils.cpp | 865 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { in StrToHex()
|
H A D | cryptfs.cpp | 82 using android::vold::KeyBuffer; 1956 int cryptfs_setup_ext_volume(const char* label, const char* real_blkdev, const KeyBuffer& key, in cryptfs_setup_ext_volume()
|
/aosp12/system/vold/model/ |
H A D | VolumeEncryption.h | 26 bool generate_volume_key(android::vold::KeyBuffer* key); 29 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
|
H A D | PrivateVolume.h | 40 PrivateVolume(dev_t device, const KeyBuffer& keyRaw); 69 KeyBuffer mKeyRaw;
|
H A 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()
|
H A D | Disk.cpp | 204 auto keyBuffer = KeyBuffer(keyRaw.begin(), keyRaw.end()); in createPrivateVolume() 508 KeyBuffer key; in partitionMixed()
|
H A D | PrivateVolume.cpp | 50 PrivateVolume::PrivateVolume(dev_t device, const KeyBuffer& keyRaw) in PrivateVolume()
|