Home
last modified time | relevance | path

Searched refs:KeyBuffer (Results 1 – 21 of 21) sorted by relevance

/aosp12/system/vold/
H A DKeyBuffer.h51 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 DKeyStorage.h48 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 DKeyBuffer.cpp25 KeyBuffer operator+(KeyBuffer&& lhs, const KeyBuffer& rhs) { in operator +()
30 KeyBuffer operator+(KeyBuffer&& lhs, const char* rhs) { in operator +()
H A DKeyUtil.cpp43 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 DKeyUtil.h41 bool generateStorageKey(const KeyGeneration& gen, KeyBuffer* key);
67 const KeyBuffer& key, EncryptionPolicy* policy);
81 KeyBuffer* key);
H A DMetadataCrypt.cpp52 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 DKeyStorage.cpp153 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 DFsCrypt.cpp73 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 DMetadataCrypt.h35 const android::vold::KeyBuffer& key,
H A Dcryptfs.h69 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
H A DUtils.h128 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex);
H A DKeymaster.h117 bool exportKey(const KeyBuffer& kmKey, std::string* key);
H A DAndroid.bp123 "KeyBuffer.cpp",
H A DKeymaster.cpp153 bool Keymaster::exportKey(const KeyBuffer& kmKey, std::string* key) { in exportKey()
H A DUtils.cpp865 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { in StrToHex()
H A Dcryptfs.cpp82 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 DVolumeEncryption.h26 bool generate_volume_key(android::vold::KeyBuffer* key);
29 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
H A DPrivateVolume.h40 PrivateVolume(dev_t device, const KeyBuffer& keyRaw);
69 KeyBuffer mKeyRaw;
H A DVolumeEncryption.cpp62 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 DDisk.cpp204 auto keyBuffer = KeyBuffer(keyRaw.begin(), keyRaw.end()); in createPrivateVolume()
508 KeyBuffer key; in partitionMixed()
H A DPrivateVolume.cpp50 PrivateVolume::PrivateVolume(dev_t device, const KeyBuffer& keyRaw) in PrivateVolume()