/system/nvram/messages/include/nvram/messages/ |
D | blob.h | 34 class NVRAM_EXPORT Blob { 36 Blob(); 37 ~Blob(); 41 Blob(const Blob& other) = delete; 42 Blob& operator=(const Blob& other) = delete; 43 Blob(Blob&& other); 44 Blob& operator=(Blob&& other); 45 friend void swap(Blob& first, Blob& second);
|
D | nvram_messages.h | 67 Blob authorization_value; 87 Blob authorization_value; 100 Blob buffer; 101 Blob authorization_value; 109 Blob authorization_value; 113 Blob buffer; 119 Blob authorization_value; 127 Blob authorization_value; 184 bool Encode(const Message& msg, Blob* blob);
|
/system/nvram/messages/ |
D | blob.cpp | 26 Blob::Blob() {} in Blob() function in nvram::Blob 28 Blob::~Blob() { in ~Blob() 34 Blob::Blob(Blob&& other) : Blob() { in Blob() function in nvram::Blob 38 Blob& Blob::operator=(Blob&& other) { in operator =() 43 void swap(Blob& first, Blob& second) { in swap() 54 bool Blob::Assign(const void* data, size_t size) { in Assign() 66 bool Blob::Resize(size_t size) { in Resize()
|
/system/update_engine/payload_generator/ |
D | zip_unittest.cc | 48 explicit MemoryExtentWriter(brillo::Blob* data) : data_(data) { in MemoryExtentWriter() 67 brillo::Blob* data_; 71 bool DecompressWithWriter(const brillo::Blob& in, brillo::Blob* out) { in DecompressWithWriter() 85 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const = 0; 86 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const = 0; 94 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipCompress() 97 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipDecompress() 107 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipCompress() 110 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipDecompress() 127 brillo::Blob in(in_str.begin(), in_str.end()); in TYPED_TEST() [all …]
|
D | payload_signer.cc | 57 bool ConvertSignaturesToProtobuf(const vector<brillo::Blob>& signatures, in ConvertSignaturesToProtobuf() 61 for (const brillo::Blob& signature : signatures) { in ConvertSignaturesToProtobuf() 86 brillo::Blob* out_payload, in AddSignatureBlobToPayload() 93 brillo::Blob payload; in AddSignatureBlobToPayload() 179 bool CalculateHashFromPayload(const brillo::Blob& payload, in CalculateHashFromPayload() 183 brillo::Blob* out_hash_data, in CalculateHashFromPayload() 184 brillo::Blob* out_metadata_hash) { in CalculateHashFromPayload() 233 brillo::Blob payload; in VerifySignedPayload() 247 brillo::Blob payload_hash, metadata_hash; in VerifySignedPayload() 270 bool PayloadSigner::SignHash(const brillo::Blob& hash, in SignHash() [all …]
|
D | payload_signer.h | 52 static bool SignHash(const brillo::Blob& hash, 54 brillo::Blob* out_signature); 59 const brillo::Blob& hash_data, 95 brillo::Blob* out_payload_hash_data, 96 brillo::Blob* out_metadata_hash); 108 const std::vector<brillo::Blob>& payload_signatures, 109 const std::vector<brillo::Blob>& metadata_signatures,
|
D | boot_img_filesystem_unittest.cc | 34 brillo::Blob GetBootImg(const brillo::Blob& kernel, in GetBootImg() 35 const brillo::Blob& ramdisk) { in GetBootImg() 36 brillo::Blob boot_img(16 * 1024); in GetBootImg() 57 GetBootImg(brillo::Blob(1234, 'k'), brillo::Blob(5678, 'r'))); in TEST_F() 80 brillo::Blob boot_img = GetBootImg({}, {}); in TEST_F() 90 const brillo::Blob ramdisk = {0x1f, 0x8b, 0x08, 0x00, 0x3a, 0x83, 0x35, in TEST_F() 95 GetBootImg(brillo::Blob(5678, 'k'), ramdisk)); in TEST_F()
|
D | xz_android.cc | 35 explicit BlobReaderStream(const brillo::Blob& data) : data_(data) { in BlobReaderStream() 47 const brillo::Blob& data_; 55 explicit BlobWriterStream(brillo::Blob* data) : data_(data) { in BlobWriterStream() 69 brillo::Blob* data_; 74 int GetFilterID(const brillo::Blob& data) { in GetFilterID() 117 bool XzCompress(const brillo::Blob& in, brillo::Blob* out) { in XzCompress()
|
D | payload_generation_config_android_unittest.cc | 122 brillo::Blob GetAVBPartition() { in GetAVBPartition() 123 brillo::Blob part(kImageSize); in GetAVBPartition() 146 brillo::Blob part = GetAVBPartition(); in TEST_F() 156 brillo::Blob salt(kHashTreeSalt, std::end(kHashTreeSalt)); in TEST_F() 165 brillo::Blob part = GetAVBPartition(); in TEST_F() 174 brillo::Blob part = GetAVBPartition(); in TEST_F() 183 brillo::Blob part(kImageSize); in TEST_F()
|
/system/update_engine/payload_consumer/ |
D | payload_verifier.cc | 56 const brillo::Blob& sha256_hash_data) { in VerifySignature() 66 std::vector<brillo::Blob> tested_hashes; in VerifySignature() 70 brillo::Blob sig_data(signature.data().begin(), signature.data().end()); in VerifySignature() 71 brillo::Blob sig_hash_data; in VerifySignature() 75 brillo::Blob padded_hash_data = sha256_hash_data; in VerifySignature() 94 bool PayloadVerifier::GetRawHashFromSignature(const brillo::Blob& sig_data, in GetRawHashFromSignature() 96 brillo::Blob* out_hash_data) { in GetRawHashFromSignature() 116 brillo::Blob hash_data(keysize); in GetRawHashFromSignature() 127 bool PayloadVerifier::PadRSASHA256Hash(brillo::Blob* hash, size_t rsa_size) { in PadRSASHA256Hash() 140 brillo::Blob padded_result = brillo::CombineBlobs({ in PadRSASHA256Hash() [all …]
|
D | delta_performer_unittest.cc | 178 brillo::Blob GeneratePayload(const brillo::Blob& blob_data, in GeneratePayload() 190 brillo::Blob GeneratePayload(const brillo::Blob& blob_data, in GeneratePayload() 238 brillo::Blob payload_data; in GeneratePayload() 243 brillo::Blob GenerateSourceCopyPayload(const brillo::Blob& copied_data, in GenerateSourceCopyPayload() 254 brillo::Blob src_hash; in GenerateSourceCopyPayload() 259 return GeneratePayload(brillo::Blob(), {aop}, false, old_part); in GenerateSourceCopyPayload() 265 brillo::Blob ApplyPayload(const brillo::Blob& payload_data, in ApplyPayload() 269 payload_data, source_path, brillo::Blob(), expect_success); in ApplyPayload() 277 brillo::Blob ApplyPayloadToData(const brillo::Blob& payload_data, in ApplyPayloadToData() 279 const brillo::Blob& target_data, in ApplyPayloadToData() [all …]
|
D | xz_extent_writer_unittest.cc | 89 void WriteAll(const brillo::Blob& compressed) { in WriteAll() 101 const brillo::Blob sample_data_{ 112 WriteAll(brillo::Blob(std::begin(kCompressedDataNoCheck), in TEST_F() 118 WriteAll(brillo::Blob(std::begin(kCompressedDataCRC32), in TEST_F() 126 WriteAll(brillo::Blob(std::begin(kCompressed30KiBofA), in TEST_F() 128 brillo::Blob expected_data(30 * 1024, 'a'); in TEST_F() 139 brillo::Blob compressed(std::begin(kCompressed30KiBofA), in TEST_F() 147 brillo::Blob expected_data(30 * 1024, 'a'); in TEST_F()
|
D | verity_writer_android_unittest.cc | 46 brillo::Blob part_data(8192); in TEST_F() 51 brillo::Blob actual_part; in TEST_F() 55 brillo::Blob hash = {0x1c, 0xea, 0xf7, 0x3d, 0xf4, 0x0e, 0x53, in TEST_F() 65 brillo::Blob part_data(4096); in TEST_F() 84 brillo::Blob part_data(8192); in TEST_F() 89 brillo::Blob actual_part; in TEST_F() 93 brillo::Blob hash = {0xad, 0x7f, 0xac, 0xb2, 0x58, 0x6f, 0xc6, 0xe9, in TEST_F() 106 brillo::Blob part_data(3 * 4096, 0x1); in TEST_F() 110 brillo::Blob actual_part; in TEST_F()
|
D | cached_file_descriptor_unittest.cc | 63 brillo::Blob zero_blob(kFileSize, 0); in SetUp() 87 brillo::Blob blob_in(kFileSize, value_); in TEST_F() 91 brillo::Blob blob_out; in TEST_F() 98 brillo::Blob blob_in(kFileSize, value_); in TEST_F() 104 brillo::Blob blob_out; in TEST_F() 112 brillo::Blob blob_in(kFileSize, 0); in TEST_F() 125 brillo::Blob blob_out; in TEST_F() 150 brillo::Blob blob_in(kFileSize, value_); in TEST_F() 153 brillo::Blob blob_out; in TEST_F() 160 brillo::Blob blob_in(kFileSize, 0); in TEST_F() [all …]
|
D | payload_verifier.h | 43 const brillo::Blob& sha256_hash_data); 48 static bool GetRawHashFromSignature(const brillo::Blob& sig_data, 50 brillo::Blob* out_hash_data); 58 static bool PadRSASHA256Hash(brillo::Blob* hash, size_t rsa_size);
|
D | bzip_extent_writer_unittest.cc | 72 brillo::Blob buf; in TEST_F() 88 brillo::Blob compressed_data(std::begin(kCompressedData), in TEST_F() 91 const brillo::Blob::size_type kDecompressedLength = 800 * 1024; // 800 KiB in TEST_F() 94 brillo::Blob decompressed_data(kDecompressedLength); in TEST_F() 104 brillo::Blob original_compressed_data = compressed_data; in TEST_F() 105 for (brillo::Blob::size_type i = 0; i < compressed_data.size(); in TEST_F() 114 brillo::Blob output; in TEST_F()
|
D | extent_writer_unittest.cc | 76 brillo::Blob result_file; in TEST_F() 79 brillo::Blob expected_file(kBlockSize); in TEST_F() 109 brillo::Blob data(kBlockSize * 3); in WriteAlignedExtents() 129 brillo::Blob result_file; in WriteAlignedExtents() 132 brillo::Blob expected_file; in WriteAlignedExtents() 150 brillo::Blob data(17); in TEST_F() 169 brillo::Blob resultant_data; in TEST_F() 173 brillo::Blob expected_data(on_disk_count * kBlockSize); in TEST_F() 174 brillo::Blob big(block_count * kBlockSize); in TEST_F() 175 for (brillo::Blob::size_type i = 0; i < big.size(); i++) { in TEST_F()
|
D | payload_metadata.h | 56 MetadataParseResult ParsePayloadHeader(const brillo::Blob& payload, 59 bool ParsePayloadHeader(const brillo::Blob& payload); 68 ErrorCode ValidateMetadataSignature(const brillo::Blob& payload, 86 bool GetManifest(const brillo::Blob& payload,
|
D | extent_reader_unittest.cc | 64 void ReadExtents(vector<Extent> extents, brillo::Blob* blob) { in ReadExtents() 76 brillo::Blob sample_; 84 brillo::Blob blob1(utils::BlocksInExtents(extents) * kBlockSize); in TEST_F() 86 brillo::Blob blob2; in TEST_F() 96 brillo::Blob blob(1); in TEST_F() 105 brillo::Blob blob(1); in TEST_F() 115 brillo::Blob blob(utils::BlocksInExtents(extents) * kBlockSize + 1); in TEST_F() 152 brillo::Blob result; in TEST_F() 155 brillo::Blob blob(utils::BlocksInExtents(extents) * kBlockSize); in TEST_F()
|
/system/update_engine/common/ |
D | hash_calculator.h | 57 const brillo::Blob& raw_hash() const { in raw_hash() 73 brillo::Blob* out_hash); 74 static bool RawHashOfData(const brillo::Blob& data, brillo::Blob* out_hash); 77 brillo::Blob* out_hash); 82 brillo::Blob raw_hash_;
|
/system/security/keystore/ |
D | blob.h | 103 class Blob { 107 Blob(const uint8_t* value, size_t valueLength, const uint8_t* info, uint8_t infoLength, 109 explicit Blob(blobv3 b); 110 Blob(); 111 Blob(const Blob& rhs); 112 Blob(Blob&& rhs); 114 ~Blob() { in ~Blob() 118 Blob& operator=(const Blob& rhs); 119 Blob& operator=(Blob&& rhs); 269 ResponseCode writeBlobs(Blob keyBlob, Blob characteristicsBlob, [all …]
|
D | blob.cpp | 210 Blob::Blob(const uint8_t* value, size_t valueLength, const uint8_t* info, uint8_t infoLength, in Blob() function in Blob 238 Blob::Blob(blobv3 b) { in Blob() function in Blob 242 Blob::Blob() { in Blob() function in Blob 246 Blob::Blob(const Blob& rhs) { in Blob() function in Blob 252 Blob::Blob(Blob&& rhs) : mBlob(std::move(rhs.mBlob)) {} in Blob() function in Blob 254 Blob& Blob::operator=(const Blob& rhs) { in operator =() 266 Blob& Blob::operator=(Blob&& rhs) { in operator =() 278 bool Blob::isEncrypted() const { in isEncrypted() 286 bool Blob::isSuperEncrypted() const { in isSuperEncrypted() 290 bool Blob::isCriticalToDeviceEncryption() const { in isCriticalToDeviceEncryption() [all …]
|
/system/nvram/core/include/nvram/core/ |
D | storage.h | 38 Status LoadHeader(Blob* blob); 42 Status StoreHeader(const Blob& blob); 55 Status LoadSpace(uint32_t index, Blob* blob); 74 Status StoreSpace(uint32_t index, const Blob& blob);
|
/system/nvram/hal/ |
D | memory_storage.cpp | 30 Status Load(Blob* blob) const { in Load() 42 Status Store(const Blob& blob) { in Store() 55 Blob blob_; 81 Status LoadHeader(Blob* blob) { in LoadHeader() 85 Status StoreHeader(const Blob& blob) { in StoreHeader() 89 Status LoadSpace(uint32_t index, Blob* blob) { in LoadSpace() 94 Status StoreSpace(uint32_t index, const Blob& blob) { in StoreSpace()
|
/system/nvram/core/tests/ |
D | fake_storage.cpp | 31 Status Load(Blob* blob) { in Load() 44 Status Store(const Blob& blob) { in Store() 80 Blob blob_; 127 Status LoadHeader(Blob* blob) { in LoadHeader() 131 Status StoreHeader(const Blob& blob) { in StoreHeader() 143 Status LoadSpace(uint32_t index, Blob* blob) { in LoadSpace() 148 Status StoreSpace(uint32_t index, const Blob& blob) { in StoreSpace()
|