/llvm-project/compiler-rt/test/sanitizer_common/TestCases/NetBSD/ |
H A D | sha1.cpp | 12 uint8_t digest[SHA1_DIGEST_LENGTH]; in test1() local 16 SHA1Final(digest, &ctx); in test1() 19 for (size_t i = 0; i < __arraycount(digest); i++) in test1() 20 printf("%02x", digest[i]); in test1() 48 uint8_t digest[SHA1_DIGEST_LENGTH]; in test2() local 52 SHA1Final(digest, &ctx); in test2() 55 for (size_t i = 0; i < __arraycount(digest); i++) in test2() 56 printf("%02x", digest[i]); in test2() 63 char digest[SHA1_DIGEST_STRING_LENGTH]; in test3() local 67 char *p = SHA1End(&ctx, digest); in test3() [all …]
|
H A D | rmd160.cpp | 12 uint8_t digest[RMD160_DIGEST_LENGTH]; in test1() local 16 RMD160Final(digest, &ctx); in test1() 19 for (size_t i = 0; i < __arraycount(digest); i++) in test1() 20 printf("%02x", digest[i]); in test1() 27 char digest[RMD160_DIGEST_STRING_LENGTH]; in test2() local 31 char *p = RMD160End(&ctx, digest); in test2() 32 assert(p == digest); in test2() 34 printf("test2: '%s'\n", digest); in test2() 52 char digest[RMD160_DIGEST_STRING_LENGTH]; in test4() local 54 char *p = RMD160File("/etc/fstab", digest); in test4() [all …]
|
H A D | md4.cpp | 15 uint8_t digest[MD4_DIGEST_LENGTH]; in test1() local 19 MD4Final(digest, &ctx); in test1() 22 for (size_t i = 0; i < __arraycount(digest); i++) in test1() 23 printf("%02x", digest[i]); in test1() 30 char digest[MD4_DIGEST_STRING_LENGTH]; in test2() local 34 char *p = MD4End(&ctx, digest); in test2() 35 assert(p == digest); in test2() 37 printf("test2: '%s'\n", digest); in test2() 55 char digest[MD4_DIGEST_STRING_LENGTH]; in test4() local 57 char *p = MD4File("/etc/fstab", digest); in test4() [all …]
|
H A D | md2.cpp | 15 uint8_t digest[MD2_DIGEST_LENGTH]; in test1() local 19 MD2Final(digest, &ctx); in test1() 22 for (size_t i = 0; i < __arraycount(digest); i++) in test1() 23 printf("%02x", digest[i]); in test1() 30 char digest[MD2_DIGEST_STRING_LENGTH]; in test2() local 34 char *p = MD2End(&ctx, digest); in test2() 35 assert(p == digest); in test2() 37 printf("test2: '%s'\n", digest); in test2() 55 char digest[MD2_DIGEST_STRING_LENGTH]; in test4() local 57 char *p = MD2File("/etc/fstab", digest); in test4() [all …]
|
H A D | md5.cpp |
|
H A D | sha2.cpp |
|
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/FreeBSD/ |
H A D | md5.cpp |
|
H A D | sha2.cpp |
|
/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | IndexActionTests.cpp | 37 MATCHER_P(hasDigest, Digest, "") { return arg.Digest == Digest; } 141 hasDigest(digest(MainCode)))), in TEST_F() 144 hasDigest(digest(Level1HeaderCode)))), in TEST_F() 147 hasDigest(digest(Level2HeaderCode)))))); in TEST_F() 170 hasDigest(digest(MainCode)))), in TEST_F() 172 hasDigest(digest(HeaderCode)))))); in TEST_F() 205 hasDigest(digest(MainCode)))), in TEST_F() 208 hasDigest(digest(HeaderCode)))), in TEST_F() 211 hasDigest(digest(CommonHeaderCode)))))); in TEST_F() 238 hasDigest(digest(MainCode)))), in TEST_F() [all …]
|
H A D | SerializationTests.cpp | 117 Digest: EED8F5EAF25C453C 205 EXPECT_EQ(llvm::toHex(IGNDeserialized.Digest), "EED8F5EAF25C453C"); in TEST() 262 IGN.Digest = digest(TestContent); in TEST() 288 EXPECT_EQ(IGNDeserialized.Digest, IGN.Digest); in TEST() 380 // - 8 byte: file digest in TEST() 384 // The offset isn't trivial to find, so we use the file digest. in TEST() 387 ASSERT_NE(Pos, StringRef::npos) << "Couldn't locate file digest"; in TEST()
|
/llvm-project/clang-tools-extra/clangd/index/ |
H A D | Background.cpp | 88 return digest(Buf->get()->getBuffer()) != LS.Digest; in shardIsStale() 204 DigestIt->getValue().Digest != IGN.Digest || in update() 206 FilesToUpdate[IGN.URI] = {std::move(*AbsPath), IGN.Digest}; in update() 238 if (!DigestIt.second && SV.Digest == Hash && SV.HadErrors && !HadErrors) in update() 240 SV.Digest = Hash; in update() 264 auto Hash = digest(Buf->get()->getBuffer()); in index() 273 vlog("Indexing {0} (digest:={1})", Cmd.Filename, llvm::toHex(Hash)); in index() 299 auto Digest in index() local [all...] |
H A D | IndexAction.cpp | 74 auto Digest = digestFile(SM, FileID); in FileChanged() local 75 assert(Digest && Node.Digest == *Digest && in FileChanged() 76 "Same file, different digest?"); in FileChanged() 80 if (auto Digest = digestFile(SM, FileID)) in FileChanged() local 81 Node.Digest = std::move(*Digest); in FileChanged()
|
H A D | YAMLSerialization.cpp | 368 NormalizedFileDigest(IO &, const FileDigest &Digest) { in NormalizedFileDigest() 369 HexString = llvm::toHex(Digest); in NormalizedFileDigest() 373 FileDigest Digest; in denormalize() local 374 if (HexString.size() == Digest.size() * 2 && in denormalize() 376 memcpy(Digest.data(), llvm::fromHex(HexString).data(), Digest.size()); in denormalize() 378 I.setError(std::string("Bad hex file digest: ") + HexString); in denormalize() 380 return Digest; in denormalize() 393 Node.Digest); in mapping() 394 IO.mapRequired("Digest", NDigest->HexString); in mapping()
|
H A D | BackgroundIndexLoader.cpp | 82 LS.Digest = IGN.Digest; in loadShard() 86 assert(LS.Digest != FileDigest{{0}} && "Digest is empty?"); in loadShard()
|
H A D | BackgroundIndexLoader.h | 26 /// Digest of the source file contents that produced this shard. 27 FileDigest Digest = {}; member
|
/llvm-project/llvm/utils/ |
H A D | UpdateCMakeLists.pl | 5 use Digest::MD5; 88 die("Cannot open $cmakeList when computing digest\n"); 90 my $digestA = Digest::MD5->new->addfile(*FILE)->hexdigest; 94 die("Cannot open $cmakeListNew when computing digest\n"); 96 my $digestB = Digest::MD5->new->addfile(*FILE)->hexdigest;
|
/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXContainerGlobals.cpp | 95 MD5 Digest; in computeShaderHash() 96 Digest.update(DXILConstant->getRawDataValues()); in computeShaderHash() 97 MD5::MD5Result Result = Digest.final(); in computeShaderHash() 105 memcpy(reinterpret_cast<void *>(&HashData.Digest), Result.data(), 16); in computeShaderHash() 89 MD5 Digest; computeShaderHash() local
|
/llvm-project/llvm/test/tools/obj2yaml/DXContainer/ |
H A D | ShaderHash.yaml | 16 Digest: [ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 31 # CHECK-NEXT: Digest: [ 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x10,
|
/llvm-project/lldb/source/Utility/ |
H A D | Checksum.cpp | 39 std::string Checksum::digest() const { in digest() function in Checksum 40 return std::string(m_checksum.digest()); in digest()
|
/llvm-project/llvm/include/llvm/ADT/ |
H A D | ImmutableSet.h | 221 uint32_t digest = 0; variable 248 /// hasCachedDigest - Returns true if the digest for this tree is cached. 285 uint32_t digest = 0; in computeDigest() local 288 digest += L->computeDigest(); in computeDigest() 290 // Compute digest of stored data. in computeDigest() 293 digest += ID.ComputeHash(); in computeDigest() 296 digest += R->computeDigest(); in computeDigest() 298 return digest; in computeDigest() 302 // Check the lowest bit to determine if digest has actually been in computeDigest() 305 return digest; in computeDigest() [all …]
|
/llvm-project/llvm/lib/ObjectYAML/ |
H A D | DXContainerYAML.cpp | 44 Digest(16, 0) { in ShaderHash() 45 memcpy(Digest.data(), &Data.Digest[0], 16); in ShaderHash() 126 IO.mapRequired("Digest", Hash.Digest); in mapping()
|
/llvm-project/llvm/include/llvm/Support/ |
H A D | SHA1.h | 33 /// Digest more data. 36 /// Digest more data.
|
H A D | SHA256.h | 40 /// Digest more data. 43 /// Digest more data.
|
H A D | MD5.h | 5 * MD5 Message-Digest Algorithm (RFC 1321). 44 SmallString<32> digest() const;
|
/llvm-project/clang/tools/libclang/ |
H A D | CIndexer.cpp | 229 SmallString<32> Digest = Result.digest(); local 230 WriteStringKey("md5", Digest);
|