Home
last modified time | relevance | path

Searched refs:hashSize (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/lld/ELF/
H A DWriter.cpp3054 size_t hashSize = ctx.mainPart->buildId->hashSize; in writeBuildId() local
3055 std::unique_ptr<uint8_t[]> buildId(new uint8_t[hashSize]); in writeBuildId()
3056 MutableArrayRef<uint8_t> output(buildId.get(), hashSize); in writeBuildId()
3073 memcpy(dest, BLAKE3::hash<16>(arr).data(), hashSize); in writeBuildId()
3078 memcpy(dest, BLAKE3::hash<20>(arr).data(), hashSize); in writeBuildId()
3082 if (auto ec = llvm::getRandomBytes(buildId.get(), hashSize)) in writeBuildId()
H A DSyntheticSections.h166 const size_t hashSize;
169 size_t getSize() const override { return headerSize + hashSize; } in getSize()
H A DSyntheticSections.cpp377 hashSize(getHashSize(ctx)) {} in BuildIdSection()
381 write32(ctx, buf + 4, hashSize); // Content size in writeTo()
388 assert(buf.size() == hashSize); in writeBuildId()
389 memcpy(hashBuf, buf.data(), hashSize); in writeBuildId()
/freebsd/contrib/llvm-project/lld/MachO/
H A DSyntheticSections.cpp54 static_assert(hash.size() == CodeSignatureSection::hashSize); in sha256()
1596 return allHeadersSize + getBlockCount() * hashSize; in getRawSize()
1606 hashes + i * hashSize); in writeHashes()
1646 codeDirectory->hashSize = static_cast<uint8_t>(hashSize); in writeTo()
H A DSyntheticSections.h535 static constexpr size_t hashSize = 256 / 8; variable
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstdmt_compress.c510 size_t const hashSize = ((size_t)1 << hashLog) * sizeof(ldmEntry_t); in ZSTDMT_serialState_reset() local
524 serialState->ldmState.hashTable = (ldmEntry_t*)ZSTD_customMalloc(hashSize, cMem); in ZSTDMT_serialState_reset()
533 ZSTD_memset(serialState->ldmState.hashTable, 0, hashSize); in ZSTDMT_serialState_reset()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOWriter.cpp498 CodeDirectory->hashSize = static_cast<uint8_t>(CodeSignature.HashSize); in writeCodeSignatureData()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMachO.h2372 uint8_t hashSize; /* size of each hash in bytes */ member