Home
last modified time | relevance | path

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

/system/vold/
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);
DKeyBuffer.cpp25 KeyBuffer operator+(KeyBuffer&& lhs, const KeyBuffer& rhs) { in operator +()
30 KeyBuffer operator+(KeyBuffer&& lhs, const char* rhs) { in operator +()
DKeyStorage.h54 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);
DKeyUtil.h41 bool generateStorageKey(const KeyGeneration& gen, KeyBuffer* key);
67 const KeyBuffer& key, EncryptionPolicy* policy);
79 KeyBuffer* key, bool keepOld = true);
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()
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 …]
DMetadataCrypt.cpp55 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()
DKeyStorage.cpp139 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 …]
DMetadataCrypt.h34 const android::vold::KeyBuffer& key,
DFsCrypt.cpp70 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 …]
Dcryptfs.h69 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
DUtils.h100 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex);
DKeymaster.h118 bool exportKey(const KeyBuffer& kmKey, std::string* key);
DAndroid.bp119 "KeyBuffer.cpp",
DUtils.cpp505 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { in StrToHex()
DKeymaster.cpp141 bool Keymaster::exportKey(const KeyBuffer& kmKey, std::string* key) { in exportKey()
Dcryptfs.cpp78 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/
DVolumeEncryption.h26 bool generate_volume_key(android::vold::KeyBuffer* key);
29 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
DPrivateVolume.h40 PrivateVolume(dev_t device, const KeyBuffer& keyRaw);
66 KeyBuffer mKeyRaw;
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()
DPrivateVolume.cpp48 PrivateVolume::PrivateVolume(dev_t device, const KeyBuffer& keyRaw) in PrivateVolume()
DDisk.cpp189 auto keyBuffer = KeyBuffer(keyRaw.begin(), keyRaw.end()); in createPrivateVolume()
478 KeyBuffer key; in partitionMixed()