Home
last modified time | relevance | path

Searched refs:blob_ (Results 1 – 7 of 7) sorted by relevance

/system/nvram/hal/
Dmemory_storage.cpp28 bool present() const { return blob_.size() != 0; } in present()
31 if (blob_.size() == 0) { in Load()
35 if (!blob->Assign(blob_.data(), blob_.size())) { in Load()
43 if (!blob_.Assign(blob.data(), blob.size())) { in Store()
51 return blob_.Resize(0) ? Status::kSuccess : Status::kStorageError; in Delete()
55 Blob blob_; member in nvram::storage::__anonbf70ebaf0111::StorageSlot
/system/nvram/messages/
Dio.cpp221 : OutputStreamBuffer(blob->data(), blob->size()), blob_(blob) {} in BlobOutputStreamBuffer()
224 ptrdiff_t offset = pos_ - blob_->data(); in Advance()
225 if (!blob_->Resize(max<size_t>(blob_->size() * 2, 32))) { in Advance()
228 pos_ = blob_->data() + offset; in Advance()
229 end_ = blob_->data() + blob_->size(); in Advance()
234 if (!blob_->Resize(pos_ - blob_->data())) { in Truncate()
237 end_ = blob_->data() + blob_->size(); in Truncate()
/system/nvram/core/tests/
Dfake_storage.cpp40 NVRAM_CHECK(blob->Assign(blob_.data(), blob_.size())); in Load()
49 NVRAM_CHECK(blob_.Assign(blob.data(), blob.size())); in Store()
59 NVRAM_CHECK(blob_.Resize(0)); in Delete()
68 NVRAM_CHECK(blob_.Resize(0)); in Clear()
80 Blob blob_; member in nvram::storage::__anonf638f7030111::StorageSlot
/system/keymaster/tests/
Dandroid_keymaster_test_utils.cpp179 blob_.key_material = nullptr; in Keymaster2Test()
181 blob_.key_material = 0; in Keymaster2Test()
202 return device()->generate_key(device(), &params, &blob_, &characteristics_); in GenerateKey()
206 return device()->delete_key(device(), &blob_); in DeleteKey()
220 return device()->import_key(device(), &params, format, &key, &blob_, &characteristics_); in ImportKey()
241 device()->begin(device(), purpose, &blob_, &in_params, &out_params, &op_handle_); in BeginOperation()
252 device()->begin(device(), purpose, &blob_, &input_set, &out_params, &op_handle_); in BeginOperation()
346 return device()->attest_key(device(), &blob_, &attest_params, cert_chain); in AttestKey()
352 device()->upgrade_key(device(), &blob_, &upgrade_params, &upgraded_blob); in UpgradeKey()
355 blob_ = upgraded_blob; in UpgradeKey()
[all …]
Dandroid_keymaster_test_utils.h325 blob_.key_material = key; in set_key_blob()
326 blob_.key_material_size = key_length; in set_key_blob()
329 void set_key_blob(KeymasterKeyBlob blob) { blob_ = blob.release(); } in set_key_blob()
350 keymaster_key_blob_t blob_; variable
Dandroid_keymaster_test.cpp1635 req.SetKeyMaterial(blob_); in BeginOperation()
1671 KeymasterKeyBlob blob_; member in keymaster::test::ImportWrappedKeyTest
1710 blob_ = move(response.key_blob); in TEST_F()
/system/nvram/messages/include/nvram/messages/
Dio.h215 Blob* blob_;