Home
last modified time | relevance | path

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

/system/vold/
DKeyBuffer.h37 using KeyBuffer = std::vector<char, ZeroingAllocator>; variable
40 KeyBuffer operator+(KeyBuffer&& lhs, const KeyBuffer& rhs);
41 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.h56 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);
DKeyUtil.h39 bool generateStorageKey(const KeyGeneration& gen, KeyBuffer* key);
65 const KeyBuffer& key, android::fscrypt::EncryptionPolicy* policy);
79 KeyBuffer* key);
DKeyUtil.cpp51 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 …]
DKeyStorage.cpp136 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 …]
DMetadataCrypt.cpp53 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()
Dcryptfs.cpp41 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()
Dcryptfs.h26 const android::vold::KeyBuffer& key, std::string* out_crypto_blkdev);
DFsCrypt.cpp72 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 …]
DMetadataCrypt.h37 const android::vold::KeyBuffer& key,
DUtils.h132 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex);
DKeystore.h116 bool exportKey(const KeyBuffer& ksKey, std::string* key);
DAndroid.bp121 "KeyBuffer.cpp",
DKeystore.cpp153 bool Keystore::exportKey(const KeyBuffer& ksKey, std::string* key) { in exportKey()
DUtils.cpp917 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { in StrToHex()
/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);
69 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.cpp50 PrivateVolume::PrivateVolume(dev_t device, const KeyBuffer& keyRaw) in PrivateVolume()
DDisk.cpp204 auto keyBuffer = KeyBuffer(keyRaw.begin(), keyRaw.end()); in createPrivateVolume()
508 KeyBuffer key; in partitionMixed()