Home
last modified time | relevance | path

Searched refs:kLength (Results 1 – 19 of 19) sorted by relevance

/system/ulib/digest/
A Ddigest.cpp45 memcpy(bytes_, o.bytes_, kLength); in Digest()
46 memset(o.bytes_, 0, kLength); in Digest()
52 memcpy(bytes_, o.bytes_, kLength); in operator =()
58 memcpy(bytes_, rhs, kLength); in operator =()
149 return memcmp(bytes_, rhs.bytes_, kLength) == 0; in operator ==()
157 return rhs ? memcmp(bytes_, rhs, kLength) == 0 : false; in operator ==()
A Dmerkle-tree.cpp25 const size_t kDigestsPerNode = MerkleTree::kNodeSize / Digest::kLength;
197 digest_.CopyTo(out, Digest::kLength); in CreateUpdate()
198 rc = next_->CreateUpdate(out, Digest::kLength, next); in CreateUpdate()
199 out += Digest::kLength; in CreateUpdate()
200 tree_off += Digest::kLength; in CreateUpdate()
324 expected += Digest::kLength; in VerifyLevel()
411 if (root_len < Digest::kLength) { in merkle_tree_verify()
/system/ulib/digest/include/digest/
A Ddigest.h30 static constexpr size_t kLength = DIGEST_LENGTH;
111 uint8_t bytes_[kLength];
/system/ulib/blobfs/include/blobfs/
A Dblob-cache.h147 return memcmp(k1, k2, Digest::kLength) < 0; in LessThan()
150 return memcmp(k1, k2, Digest::kLength) == 0; in EqualTo()
A Dcache-node.h90 uint8_t digest_[Digest::kLength] = {};
A Dformat.h291 uint8_t merkle_root_hash[Digest::kLength];
/system/utest/digest/
A Ddigest.cpp37 char buf[(Digest::kLength * 2) + 1]; in DigestStrings()
62 uint8_t buf[Digest::kLength]; in DigestSelf()
65 actual.Hash(buf, Digest::kLength); in DigestSelf()
88 uint8_t buf[Digest::kLength]; in DigestCWrappers()
A Dmerkle-tree.cpp37 const uint64_t kLarge = ((kNodeSize / Digest::kLength) + 1) * kNodeSize;
45 const char digest[(Digest::kLength * 2) + 1];
318 uint8_t actual[Digest::kLength]; in CreateFinalC()
343 uint8_t actual[Digest::kLength]; in CreateC()
437 uint8_t digest[Digest::kLength]; in VerifyC()
570 char str[(Digest::kLength * 2) + 1]; in VerifyBadRoot()
632 uint8_t buffer[Digest::kLength]; in CreateAndVerifyHugePRNGData()
651 buffer[rand() % Digest::kLength] ^= in CreateAndVerifyHugePRNGData()
/system/host/blobfs/
A Dblobfs.h53 for (size_t i = 0; i < digest::Digest::kLength; i++) { in operator()
/system/ulib/fs-host/include/fs-host/
A Dcommon.h34 kLength, enumerator
/system/host/merkleroot/
A Dmerkleroot.cpp31 char digest[Digest::kLength * 2 + 1]{};
/system/ulib/blobfs/
A Dvnode.cpp122 char name[Digest::kLength * 2 + 1]; in Verify()
338 memset(inode_.merkle_root_hash, 0, Digest::kLength); in SpaceAllocate()
437 memcpy(inode_.merkle_root_hash, GetKey(), Digest::kLength); in WriteMetadata()
984 info->max_filename_size = Digest::kLength * 2; in QueryFilesystem()
A Dblobfs.cpp368 char name[Digest::kLength * 2 + 1]; in Readdir()
374 if ((r = df.Next(fbl::StringPiece(name, Digest::kLength * 2), in Readdir()
652 char name[digest::Digest::kLength * 2 + 1]; in InitializeVnodes()
/system/ulib/fs-host/
A Dcommon.cpp33 {"length", Option::kLength, "[bytes]", "Remaining Length",
/system/dev/display/vim-display/
A Dvim-spdif-audio-stream.cpp288 uint8_t digest_out[digest::Digest::kLength]; in Init()
/system/utest/blobfs-bench/
A Dblobfs-bench.cpp168 fbl::StringPrintf("%s/%*d", fs_path.c_str(), static_cast<int>(2 * Digest::kLength), 0); in GetNegativeLookupPath()
/system/host/minfs/
A Dmain.cpp164 case Option::kLength: in IsOptionValid()
/system/dev/audio/usb-audio/
A Dusb-audio-stream.cpp214 uint8_t digest_out[digest::Digest::kLength]; in ComputePersistentUniqueId()
/system/utest/blobfs/
A Dblobfs.cpp686 ASSERT_EQ(info.max_filename_size, Digest::kLength * 2); in QueryInfo()
1218 size_t idx = strlen(info->path) - 1 - (rand() % (2 * Digest::kLength)); in CorruptedDigest()

Completed in 36 milliseconds