Home
last modified time | relevance | path

Searched refs:Blob (Results 1 – 25 of 125) sorted by relevance

12345

/system/nvram/messages/include/nvram/messages/
Dblob.h34 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);
Dnvram_messages.h67 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/
Dblob.cpp26 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/
Dzip_unittest.cc47 explicit MemoryExtentWriter(brillo::Blob* data) : data_(data) { in MemoryExtentWriter()
65 brillo::Blob* data_;
69 bool DecompressWithWriter(const brillo::Blob& in, brillo::Blob* out) { in DecompressWithWriter()
83 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const = 0;
84 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const = 0;
92 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipCompress()
95 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipDecompress()
105 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipCompress()
108 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipDecompress()
125 brillo::Blob in(in_str.begin(), in_str.end()); in TYPED_TEST()
[all …]
Dpayload_signer.h49 static bool SignHash(const brillo::Blob& hash,
51 brillo::Blob* out_signature);
56 const brillo::Blob& hash_data,
92 brillo::Blob* out_payload_hash_data,
93 brillo::Blob* out_metadata_hash);
106 const std::vector<brillo::Blob>& payload_signatures,
107 const std::vector<brillo::Blob>& metadata_signatures,
Dpayload_signer.cc52 bool ConvertSignaturesToProtobuf(const vector<brillo::Blob>& signatures, in ConvertSignaturesToProtobuf()
69 brillo::Blob padded_signature = signature; in ConvertSignaturesToProtobuf()
93 brillo::Blob* out_payload, in AddSignatureBlobToPayload()
100 brillo::Blob payload; in AddSignatureBlobToPayload()
183 bool CalculateHashFromPayload(const brillo::Blob& payload, in CalculateHashFromPayload()
187 brillo::Blob* out_hash_data, in CalculateHashFromPayload()
188 brillo::Blob* out_metadata_hash) { in CalculateHashFromPayload()
249 brillo::Blob payload; in VerifySignedPayload()
263 brillo::Blob payload_hash, metadata_hash; in VerifySignedPayload()
290 bool PayloadSigner::SignHash(const brillo::Blob& hash, in SignHash()
[all …]
Dboot_img_filesystem_unittest.cc35 brillo::Blob GetBootImg(const brillo::Blob& kernel, in GetBootImg()
36 const brillo::Blob& ramdisk, in GetBootImg()
38 brillo::Blob boot_img(16 * 1024); in GetBootImg()
72 GetBootImg(brillo::Blob(1234, 'k'), brillo::Blob(5678, 'r'))); in TEST_F()
97 GetBootImg(brillo::Blob(1000, 'k'), brillo::Blob(5000, 'r'), true)); in TEST_F()
120 brillo::Blob boot_img = GetBootImg({}, {}); in TEST_F()
130 const brillo::Blob ramdisk = {0x1f, 0x8b, 0x08, 0x00, 0x3a, 0x83, 0x35, in TEST_F()
135 GetBootImg(brillo::Blob(5678, 'k'), ramdisk)); in TEST_F()
Dxz_android.cc35 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()
Dpayload_generation_config_android_unittest.cc122 brillo::Blob GetAVBPartition() { in GetAVBPartition()
123 brillo::Blob part(kImageSize); in GetAVBPartition()
145 brillo::Blob part = GetAVBPartition(); in TEST_F()
155 brillo::Blob salt(kHashTreeSalt, std::end(kHashTreeSalt)); in TEST_F()
163 brillo::Blob part = GetAVBPartition(); in TEST_F()
174 brillo::Blob salt(kHashTreeSalt, std::end(kHashTreeSalt)); in TEST_F()
182 brillo::Blob part = GetAVBPartition(); in TEST_F()
191 brillo::Blob part = GetAVBPartition(); in TEST_F()
200 brillo::Blob part(kImageSize); in TEST_F()
/system/update_engine/common/
Dhash_calculator.h57 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);
78 static bool RawHashOfFile(const std::string& name, brillo::Blob* out_hash);
83 brillo::Blob raw_hash_;
Dhash_calculator.cc53 brillo::Blob buffer(kBufferSize); in UpdateFile()
85 brillo::Blob* out_hash) { in RawHashOfBytes()
93 bool HashCalculator::RawHashOfData(const brillo::Blob& data, in RawHashOfData()
94 brillo::Blob* out_hash) { in RawHashOfData()
98 bool HashCalculator::RawHashOfFile(const string& name, brillo::Blob* out_hash) { in RawHashOfFile()
105 brillo::Blob* out_hash) { in RawHashOfFile()
/system/update_engine/payload_consumer/
Dpayload_verifier.h44 static bool PadRSASHA256Hash(brillo::Blob* hash, size_t rsa_size);
63 const brillo::Blob& sha256_hash_data) const;
68 bool VerifyRawSignature(const brillo::Blob& sig_data,
69 const brillo::Blob& sha256_hash_data,
70 brillo::Blob* decrypted_sig_data) const;
81 bool GetRawHashFromSignature(const brillo::Blob& sig_data,
83 brillo::Blob* out_hash_data) const;
Dpayload_verifier.cc98 const string& signature_proto, const brillo::Blob& sha256_hash_data) const { in VerifySignature()
110 std::vector<brillo::Blob> tested_hashes; in VerifySignature()
114 brillo::Blob sig_data; in VerifySignature()
127 brillo::Blob sig_hash_data; in VerifySignature()
148 const brillo::Blob& sig_data, in VerifyRawSignature()
149 const brillo::Blob& sha256_hash_data, in VerifyRawSignature()
150 brillo::Blob* decrypted_sig_data) const { in VerifyRawSignature()
156 brillo::Blob sig_hash_data; in VerifyRawSignature()
168 brillo::Blob padded_hash_data = sha256_hash_data; in VerifyRawSignature()
197 const brillo::Blob& sig_data, in GetRawHashFromSignature()
[all …]
Dxz_extent_writer_unittest.cc89 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()
Ddelta_performer_unittest.cc193 brillo::Blob GeneratePayload(const brillo::Blob& blob_data, in GeneratePayload()
205 brillo::Blob GeneratePayload(const brillo::Blob& blob_data, in GeneratePayload()
253 brillo::Blob payload_data; in GeneratePayload()
258 brillo::Blob GenerateSourceCopyPayload(const brillo::Blob& copied_data, in GenerateSourceCopyPayload()
269 brillo::Blob src_hash; in GenerateSourceCopyPayload()
274 return GeneratePayload(brillo::Blob(), {aop}, false, old_part); in GenerateSourceCopyPayload()
280 brillo::Blob ApplyPayload(const brillo::Blob& payload_data, in ApplyPayload()
284 &performer_, payload_data, source_path, brillo::Blob(), expect_success); in ApplyPayload()
286 brillo::Blob ApplyPayloadToData(const brillo::Blob& payload_data, in ApplyPayloadToData()
288 const brillo::Blob& target_data, in ApplyPayloadToData()
[all …]
Dverity_writer_android_unittest.cc52 brillo::Blob part_data(8192); in TEST_F()
58 brillo::Blob actual_part; in TEST_F()
62 brillo::Blob hash = {0x1c, 0xea, 0xf7, 0x3d, 0xf4, 0x0e, 0x53, in TEST_F()
72 brillo::Blob part_data(4096); in TEST_F()
82 brillo::Blob part_data(4096); in TEST_F()
100 brillo::Blob part_data(8192); in TEST_F()
106 brillo::Blob actual_part; in TEST_F()
110 brillo::Blob hash = {0xad, 0x7f, 0xac, 0xb2, 0x58, 0x6f, 0xc6, 0xe9, in TEST_F()
123 brillo::Blob part_data(8192 + partition_.hash_tree_data_offset); in TEST_F()
131 brillo::Blob actual_part; in TEST_F()
[all …]
Dcached_file_descriptor_unittest.cc63 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 …]
Dpartition_writer_unittest.cc63 AnnotatedOperation GenerateSourceCopyOp(const brillo::Blob& copied_data, in GenerateSourceCopyOp()
74 brillo::Blob src_hash; in GenerateSourceCopyOp()
82 brillo::Blob PerformSourceCopyOp(const InstallOperation& op, in PerformSourceCopyOp()
83 const brillo::Blob blob_data) { in PerformSourceCopyOp()
103 brillo::Blob output_data; in PerformSourceCopyOp()
126 brillo::Blob expected_data = FakeFileDescriptorData(kCopyOperationSize); in TEST_F()
158 brillo::Blob invalid_data(kCopyOperationSize, 0x55); in TEST_F()
163 brillo::Blob expected_data = FakeFileDescriptorData(kCopyOperationSize); in TEST_F()
179 brillo::Blob invalid_data(kSourceSize, 0x55); in TEST_F()
188 brillo::Blob expected_data = FakeFileDescriptorData(kSourceSize); in TEST_F()
[all …]
Dbzip_extent_writer_unittest.cc70 brillo::Blob buf; in TEST_F()
86 brillo::Blob compressed_data(std::begin(kCompressedData), in TEST_F()
89 const brillo::Blob::size_type kDecompressedLength = 800 * 1024; // 800 KiB in TEST_F()
92 brillo::Blob decompressed_data(kDecompressedLength); in TEST_F()
101 brillo::Blob original_compressed_data = compressed_data; in TEST_F()
102 for (brillo::Blob::size_type i = 0; i < compressed_data.size(); in TEST_F()
111 brillo::Blob output; in TEST_F()
Dextent_writer_unittest.cc75 brillo::Blob result_file; in TEST_F()
78 brillo::Blob expected_file(kBlockSize); in TEST_F()
107 brillo::Blob data(kBlockSize * 3); in WriteAlignedExtents()
126 brillo::Blob result_file; in WriteAlignedExtents()
129 brillo::Blob expected_file; in WriteAlignedExtents()
147 brillo::Blob data(17); in TEST_F()
165 brillo::Blob resultant_data; in TEST_F()
169 brillo::Blob expected_data(on_disk_count * kBlockSize); in TEST_F()
170 brillo::Blob big(block_count * kBlockSize); in TEST_F()
171 for (brillo::Blob::size_type i = 0; i < big.size(); i++) { in TEST_F()
Dpayload_metadata.h57 MetadataParseResult ParsePayloadHeader(const brillo::Blob& payload,
63 bool ParsePayloadHeader(const brillo::Blob& payload);
73 const brillo::Blob& payload,
91 bool GetManifest(const brillo::Blob& payload,
Dextent_reader_unittest.cc64 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/nvram/core/include/nvram/core/
Dstorage.h38 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/
Dmemory_storage.cpp30 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/
Dfake_storage.cpp31 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()

12345